2 posts / 0 new
Last post
ankitdaf
Offline
Last seen:2 years 10 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.

I am unable 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:3 months 5 days ago
工作人员
加入:2015-06-08 11: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