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

How to handle BLE_GAP_EVT_DISCONNECT ? Need to modify ble_app_att_throughput example to resume sending data after a GAP DISCONNECT EVENT

Hi:

I am running the example program ble_app_att_mtu_throughput on the SDK52 for the NRF58232 and the NRF58340 next.

My question has to do with how to modify the example code in  ble_central_and_peripheral/experimental/ble_app_att_mtu_throughtput   so that when the event BLE_GAP_EVT_DISCONNECTED happens, the program will attempt to  reconnect and resend data again.

RIght now, after the BLE_GAP_EVT_DISCONNECTED is received, I have to manually intervene to establish the connection again and run the test again.

Thanks

Bak 

Related