Hi,
I'm facing an issue from several days and I can't find the solution !
I have a BLE device that send accelerometer data, over BLE.
My goal is to get them on Mit app inventor.
The data payload is like this : XXXXYYYYZZZZ (Ex: 0061 008A FF51)
Where XXXX is two bytes for the YAW, YYYY for the PITCH and ZZZZ for the ROLL of the accelerometer.
Whis this block I can't get all the 6 bytes :
Issue is when I try to combine two bytes to one number (I can have negative number) :
For example :
"FF4C" give me "-180" : it's OK !
00B4 give me -76, it's wrong, I need to have 180.
-76 is because AI return me a signed 8 bit (only "B4") and not a signed 16bit as I want (00B4)
Do you know where is the issue ?
Thanks for your help !