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

Is it possible to display integer on nRF Connect app ?

I'm sending int16_t thanks to a custom BLE Service.

I receive well the data on the nRF Connect app (Android), but the data are displayed in hexa, for example for 256 I got (0x) 00-01:

Is it possible to change this to automatically display integer ?

I tried to add a GATT Characteristic Presentation Format to my structure when I create the Characteristic but this only appears at the end without changing the display of the value :

I have looked on the ble_gatts.h file for something that can help me without success.

Thanks

Parents
  • It may be an integer, unsigned integer, 2 uint8s, 2 sint8, invalid data, some bitmask... There would have to be a way to specify exactly the format. Right now you can just set format to text when you rename the characteristic, other formats would require a lot of work and we don't want to just add integer, others would start asking why not float16.. :) 

    But it's in our backlog, just very low priority.

Reply
  • It may be an integer, unsigned integer, 2 uint8s, 2 sint8, invalid data, some bitmask... There would have to be a way to specify exactly the format. Right now you can just set format to text when you rename the characteristic, other formats would require a lot of work and we don't want to just add integer, others would start asking why not float16.. :) 

    But it's in our backlog, just very low priority.

Children
No Data
Related