Hi,
I'm implementing LESC.
- SDK version : 16.0.1
- SD version : 7.0.1
- example code : ble_app_hrs
I checked that the LESC(just works) function is working.
But, I found a problem when delete bonding information from central.
If the bonding information is deleted only from the central, central does not become bonding after.(bonding information exist in peripheral)
So, i added allow_repairing in pm_evt_handler() like this thread.
After allowing repair, the central can bonding with peripheral even if peripheral have bonding information.
But here comes another problem.
After allowing repair, the central ask pairing request twice.
This is the log of nRF Connect. (android application)
Connection parameters updated (interval: 45.0ms, latancy: 0, timeout: 5000ms) [Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_CONSENT (3) [Boradcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_BONDED (12) Device bonded
My implementation goals are as follows.
- delete bonding information in central only
- pair central to peripheral
- ask pairing request once (like first bonding)
Is there a way to use it like bonding for the first time without deleting the information from the peripheral?