The following code are copied out of bpservice.c (blood prressure service).
I don't understand why the attribute permission field of Characteristic Value Declaration is ZERO. is it neither readable nor writable? Then the only way for client to get the value of this field is by notification or indication? what is the point? And if this is the case then the client can know the bloodPressureTempUUID? Then how the client know the Characteristic is Blood Pressure Measurement if bloodPressureTempUUID not known? I am confused.
// 1. Characteristic Declaration
{
{ ATT_BT_UUID_SIZE, characterUUID },
GATT_PERMIT_READ,
0,
&bloodPressureTempProps
},
// 2. Characteristic Value
{
{ ATT_BT_UUID_SIZE, bloodPressureTempUUID },
0, //return READ_NOT_PERMITTED
0,
&bloodPressureTemp
},
// 3.Characteristic Configuration
{
{ ATT_BT_UUID_SIZE, clientCharCfgUUID },
GATT_PERMIT_READ | GATT_PERMIT_WRITE,
0,
(uint8 *)&bloodPressureMeasConfig
},