Hi,
I trying to send indication supplied with some data to my Android app (which BTW works fine with other BLE devices) as an answer to characteristic write command
Here is my sequence of calls:
Android:
1) Discover services and characteristic
2) Write 0x3 to CCCD (0x2902) of required characteristic to enable notifications and indications
3) Enable characteristic notifications
4) Write characteristic
nRF52:
1) create services, characteristic and CCCD
2) upone receiving BLE_GATTS_EVT_WRITE set new characteristic value with sd_ble_gatts_value_set
3) call sd_ble_gatts_hvx with p_data as NULL (returns success)
Unfortunately Android callback onCharacteristicChanged is never called and p_len member of ble_gatts_hvx_params_t passed to sd_ble_gatts_hvx remains 0
Here is my add characteristic function:
Here is my write response function called on BLE_GATTS_EVT_WRITE
What am I missing?