Using BLE indication, Warning of "Device is not subscribed to characteristic" appears

Hello,

With reference to BLE Fundamentals Lesson 4, I am try to modify my existing BLE code to add indication support.


After adding the codes, I can see the "Read and indicate" appears in nRF connect mobile app.
I can press the "indicate" button on the app. In the callback defined in BT_GATT_CCC, I can confirm the mobile app writes the value of 

BT_GATT_CCC_INDICATE to enable indicate.

With "read" button on the app, I can read the value that matches what I implemented in NRF52832.

However, every time when the API "bt_gatt_indicate()" is called, a warning debug message appears:
"W: Device is not subscribed to characteristic"

In nRF connect, the value is not updated also which implies indication does not work.

What could be the possible cause of getting the above warning?
Thank you!
Parents Reply Children
No Data
Related