Hi all,
i try to setting the "Characteristic Presentation Format" of Thermometer example code in BLE stack V1.3.
But i don't understand the following code from Thermometerservice.c line:193.
// 4. Presentation Format
{
{ ATT_BT_UUID_SIZE, charFormatUUID },
GATT_PERMIT_READ,
0,
(uint8 *)&thermometerTempFormat (PS. static uint8 thermometerTempFormat = 12;)
},
I found from BLUETOOTH SPECIFICATION Version 4.0 [Vol 3] as the following table.
I don't understand why the Presentation Format is declared as in Thermometerservice.c?
What is the relationship between the code and the specification?
Do any document to explain it?
3.3.3.5 Characteristic Presentation Format :
Attribute Handle |
Attribute Type |
Attribute Value |
Attribute Permissions |
||||
0xNNNN |
0x2904 – UUID for «Character- istic Format» |
Format |
Exponent |
Unit |
Name Space |
Description |
Read only |
Thanks!!
Peter.