I am trying to allow 2 peripherals to bond to a central, and would like to be able to use 2 push buttons to delete the bond information for either device. Is it possible to clear the persistent data selectively like this?
I am trying to allow 2 peripherals to bond to a central, and would like to be able to use 2 push buttons to delete the bond information for either device. Is it possible to clear the persistent data selectively like this?
Could this be a solution?
Button 1 is pressed to allow bonding to device x.
Wait for the bonding procedure to complete. DM_EVT_SECURITY_SETUP_COMPLETE
Use dm_handle_get() with the connection handle to get the dm handle of device x.
Tie the dm handle of device x to button 1 and store it persistently.
On boot, check if button 1 has any handle tied to it.
Could this be a solution?
Button 1 is pressed to allow bonding to device x.
Wait for the bonding procedure to complete. DM_EVT_SECURITY_SETUP_COMPLETE
Use dm_handle_get() with the connection handle to get the dm handle of device x.
Tie the dm handle of device x to button 1 and store it persistently.
On boot, check if button 1 has any handle tied to it.
Is there an equivalent function for SDK 7.2 or would we need to port it ourselves?
Unfortunately there is no equivalent function in SDK 7.2.