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

Identifying the source of a callback defined with NRF_SDH_BLE_OBSERVER

I'm working with S132, SDK15.0 and an NRF52832 defining custom services. 

I have two services with each with several characteristics.  I need to be able to determine which service and/or characteristic a NRF_SDH_BLE_OBSERVER callback is related to.  eg. when I get BLE_GATTS_EVT_HVN_TX_COMPLETE I need to know which service and/or characteristic to pass the callback to.

I've studied the parameters in ble_evt_t but I don't see something that will help me here, none of the handles seem to change between services or characteristics.  The void* is of no help because it applies to the instance of NRF_SDH_BLE_OBSERVER not the instance of the service or characteristic.

Thanks,
Tom

Related