I am trying learn how to handle a central when the bond has been deleted on the device only.
It is a HID device using softdevice7 / sdk6.1, with max 1 bonded centrals.
Pressing the pair-button deletes any existing bond, disconnects and start advertising. The problem is that the central (iOS in this case) immediately reconnects to the device and never disconnect. Log of incoming events looks like this:
<BLE_GAP_EVT_CONNECTED
dm_ble_evt_handler()
main_on_ble_evt()
Exit state: Pairing
Enter state: Connected
<BLE_GAP_EVT_SEC_INFO_REQUEST
dm_ble_evt_handler()
main_on_ble_evt()
<BLE_GAP_EVT_SEC_INFO_REQUEST
dm_ble_evt_handler()
main_on_ble_evt()
and eventually:
<BLE_GAP_EVT_CONN_PARAM_UPDATE
dm_ble_evt_handler()
main_on_ble_evt()
the GAP handler in device_manager_peripheral.c responds to both BLE_GAP_EVT_SEC_INFO_REQUEST events with sd_ble_gap_sec_info_reply(conn_handle, NULL, NULL)
What is supposed to happen after this? who should drop the connection & when?