This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to interpret value from custom characteristic

Hello

I made a custom service with characteristic. It send the number 1234 over ble. When i open the Master Control Panel and look at the custom characteristic. I read a value of (0x) 01-D2-04. How can i get a decimal value that's unstable?

image description

Hope someone has more info.

Nick

Parents Reply
  • Ah.. i never new that the reading is backwards. Is it also possible to send the reading in decimal to the Nordic app or does the app normally convert the integer from hexadecimal to decimal. Because i just copied the HRM service and changed the UUID to a custom one. in the HRM example the app is showing the given value in decimal with behind the number BPM. Already thanks.

    Nick

Children
No Data
Related