This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multiple notify characteristics

Hi

I'm trying to create a custom ble service with 4 notify characteristics. Everything works with one characteristic, but when i add the other the DK hangs.

I'm using SDK11 with S130.

I made it work with two characteristics when i give the second characteristic following CCCD metadata:

BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cccd_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cccd_md.write_perm);

But i don't want it to be writable.

Can anybody help me out?

My service code is attached.

footsensor_service.h

footsensor_service.c

Parents
  • Hi

    The CCCD has to be writeable. That is the whole point. CCCD stands for Client Characteristic Configurable Characteristic Descriptor. Note the words Client and Configurable. The CCCD is intended to be a way for the client to remotely enable notifications and indications and hence naturally has to be writeable. Your characteristic value on the other hand can have whatever read and write properties you want.

Reply
  • Hi

    The CCCD has to be writeable. That is the whole point. CCCD stands for Client Characteristic Configurable Characteristic Descriptor. Note the words Client and Configurable. The CCCD is intended to be a way for the client to remotely enable notifications and indications and hence naturally has to be writeable. Your characteristic value on the other hand can have whatever read and write properties you want.

Children
No Data
Related