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

Can a BLE Peripheral cancel its own notification before a transmission event?

I'm having trouble with my UWP Central/Client application, and I want to see how it responds to modified Peripheral/Server behavior.

How my large (several kB) reads are done is by having notifications enabled, then repeatedly calling sd_ble_gatts_hvx() with BLE_GATT_HVX_NOTIFICATION until I get NRF_ERROR_RESOURCES, then repeating that again after BLE_GATTS_EVT_HVN_TX_COMPLETE. This process ends up hanging (probably due to UWP, not the SD), so I want to try cancelling the queued notifications in the Peripheral, and "rewinding" the read. However, I haven't found an API for that, so is there one in s132 v4?

Related