Hi,
I have a scenario where central bonds with peripheral1 and peripheral2.
After a while, when button 1 is pressed in central, central need to bond (and store bonding information) with peripheral3 and peripheral4.
After this, it needs to delete bond information that it had with peripheral1 and peripheral2.
Basically, central needs to remember bond information of only 2 peripherals. Also, it needs to store the bond information for the latest (new) 2 peripherals and then delete the bond information of the old 2 peripherals.
I mean, deletion of the old 2 peripherals need to happen only after storing the bond information of the new 2 peripherals.
How can this be done?
If I call pm_peers_delete, it would delete all bonding information. Is this correct? In other words, how to delete the old 2 peripherals and keep the new 2 peripheral's bonding information? Is there an example code for this?