STBLESensor_Android icon indicating copy to clipboard operation
STBLESensor_Android copied to clipboard

Accelerometer event type not being recognized in android app (ST BLE Sensor)

Open Luktronics opened this issue 3 years ago • 1 comments

In the firmware I am sending the notification regarding the accelerometer event in this way: STORE_LE_16(NotifyAccEventCharData, 4000); //TimeStamp NotifyAccEventCharData[2]=0x08; // Tilt event STORE_LE_16(NotifyAccEventCharData+3 ,5000); //Steps Custom_Acceventchar_Send_Notification(); However, in the app (ST BLE Sensor) it shows the accelerometer event type being the value 264 (0x108) instead of 8 (0x08). The TimeStamp and Steps values are displayed correctly. What can I do to fix this problem?

Thanks in advance!

Luktronics avatar Mar 04 '22 03:03 Luktronics

Ciao, which FW are you modifying and which Board ID are you using? Because in function of the Board ID, we add a list of possible HW event for any board because the type of detectable HW event is function of the accelerometer type present on that board

and I think that you could not send one number of Steps with one Tilt Event... probably you need to send before one TILT event and then send one Pedometer Event with the number of steps let me know

PezzoniL avatar Mar 07 '22 10:03 PezzoniL