Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How to make a central pair and bond again, after deleting bond information from central side?

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.

  1. Central and peripheral pair and bond
  2. Central deletes bond information
  3. Central tries to connect with the peripheral
  4. 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.

Related