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

How to configure the CCCD for ble_gls through iOS code?

Hi,

I am using the sample ble_gls code from Nordic. When i try to write to the RACP characteristic through an iOS code that we are developing it gives an error CCCD not configured. Can someone guide us how to configure the CCCD in this case? When i remove the CCCD checking logic i am able to write to the RACP characteristic. Also i was wondering why do we need this CCCD configuration. If i remove this what harm will it cause?

Parents
  • Hi SumitS,

    CCCD needed to be configured in order for the peripheral to send data (via notification or indication) back to the central device. You can write 1 or 2 to the CCCD characteristic to enable notification/indication. If you remove the CCCD you won't be able to do notification.

    I assume the iOS code require you to write to the CCCD before you write to the RACP. Please follow what we have in the example app in nRF Toolbox.

  • Hi,

    Is there an example code of nrf Toolbox. When i write through the nrf toolbox to my peripheral i need not comment out the CCCD configuration code. But when i am doing through our customized app i need to comment the CCCD configuration code. I believe my customised app is not configuring the CCCD. Can you tell us how to configure the CCCD through iOS code. What service or characteristic we need to use to write to the CCCD configuration.

Reply
  • Hi,

    Is there an example code of nrf Toolbox. When i write through the nrf toolbox to my peripheral i need not comment out the CCCD configuration code. But when i am doing through our customized app i need to comment the CCCD configuration code. I believe my customised app is not configuring the CCCD. Can you tell us how to configure the CCCD through iOS code. What service or characteristic we need to use to write to the CCCD configuration.

Children
No Data
Related