bug fix: sensor api accept json and binary data