Dear Sir,
I am calling the function sd_ble_gap_disconnect() to disconnect the peripheral from the App.
This is called inside ble_evt_handler() function and under
switch (p_ble_evt->header.evt_id) { case BLE_GAP_EVT_CONNECTED:
Under the case statement BLE_GAP_EVT_CONNECTED: I am calling a function which in turn calls sd_ble_gap_disconnect().
I was using nRFCOnnect to test the working.
When the connect - disconnect happens I am getting the following error from the App.
Do I need to take care of anything while calling sd_ble_gap_disconnect() after establishing connection.
Or the fix for this to be done on the App side?
In the peripheral side I checked the error codes and all of them returns NRF_SUCCESS only.
Thanking you in advance.
with regards,
Geetha