This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Characteristic Write with Btool

Other Parts Discussed in Thread: CC2541

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!