2 posts / 0 new
Last post
ankitdaf
Offline
Last seen:2 years 7 months ago
加入:2015-09-03 20:14
Presentation format

Hi

I am trying to set a presentation format for a custom characteristic that I am added to CUSTS1 service in the ble_app_peripheral example.

我是你nable to figure out the code and more importantly, where to insert the code, in order to display the characteristic value as text. At the moment, I am able to see the characteristic value as empty, but I want to set it as readable text.

How do I set the presentation format for a characteristic ?

Thanks,

Device:
MT_dialog
Offline
Last seen:2 weeks 15 hours ago
工作人员
加入:2015-06-08 34
Hi ankitdaf,

Hi ankitdaf,

You can check the battery example in order to implement something like this, check the BAS_IDX_BATT_LVL_PRES_FMT for the Presentation Format Descriptor and also check the enabling of the service in order to see how its properly enabled.

Thanks MT_dialog