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.

Reply
  • 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.

Children
Related