Hello.
I am developing nrf52832 (S132 v7.0.1, SDK v17.0.0) as a peripheral.
What I want to do is to connect to Central, then bond and then disconnect.
Therefore, sd_ble_gap_disconnect is put in PM_EVT_PEER_DATA_UPDATE_SUCCEEDED which seems to be a bonding completion event.
However, when sd_ble_gap_disconnect is done, it is not BONDED in Central (nRF Connect). It seems that the timing of cutting is a little early, but is there a way to cut at the timing when both are bonded?Is there a way to delay the disconnection using a timer?
case PM_EVT_PEER_DATA_UPDATE_SUCCEEDED:
if (p_evt->params.peer_data_update_succeeded.data_id == PM_PEER_DATA_ID_BONDING) {
err_code = sd_ble_gap_disconnect(conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);
APP_ERROR_CHECK(err_code);
}
break;
Best regards.