Hi,
I'm having some trouble when trying to implement a custom service with two characteristics (SDK 15.0). My central application is not able to write to the cccd handle for the second characteristic. I get the error: NRF_ERROR_BUSY, which I traced back to the missing write response from the first cccd write. In the infocenter and the devzone I found the answer to wait for a BLE_GATTC_EVT_WRITE_RSP.
I'm not quite clear on how to do that, since BLE_GATTC_EVT_WRITE_RSP is a BLE event and my cccd writes are executed inside my service event handler (ble_cus_c_evt_handler).
Do I simply add a ble_evt variable to my service event handler function header?, or what is the way to go about this?
I'm happy to give more information about my issue if needed.
Best,
Nick