Hello,
When deleting a bond from the central, after trying to reconnect with the peripheral the PM_EVT_CONN_SEC_CONFIG_REQ gets called as expected. I know that allow repairing is set to false by default, and if I wanted to allow for the central to connect again I can set allow_repairing to true.
What I want to do is if the central deletes the bond, when trying to bond again with the peripheral the existing data on the bond should be deleted and continue with pairing.
- Central and peripheral pair and bond
- Central deletes bond information
- Central tries to connect with the peripheral
- Peripheral deletes previous data on central and continues with the pairing
Setting allow_repairing to false means the central can't connect to the peripheral any more (and never will?). Setting allow_repairing to true keeps old information and continues with the bonding.
The reason why I want to delete the central information from the peripheral, is that I don't want a previously paired central reconnecting with the device after months or years down the line. If they delete their bond information from the central, their old information should be deleted from the peripheral when they try to connect again, and then continue with making the connection.