Hi all,
I have made up a custom service profile for CC2541, what it does is simple reporting and storing some values.
However I am facing a writing issue with BTool:
As you can see from the pictures, I have preset the value as 101 in profile and BTool read it successfully with the assigned handle, but when I was trying to write it with the value I want with same handle, BTool keeps giving me this ATTR NOT FOUND error.
I have set the attribute up in the profile as:
// Offset Declaration //////////////////////////////////
{
{ ATT_BT_UUID_SIZE, characterUUID },
GATT_PERMIT_READ,
0,
&OffsetProps
},
// Offset Value
{
{ ATT_BT_UUID_SIZE, OffsetUUID },
GATT_PERMIT_READ | GATT_PERMIT_WRITE,
0,
(uint8*)&Offset
},
Anything I did it in the wrong way? Is there something else I need to set to make the write function work?
Thanks!