Hi,
My nRf51422 based device holds bonding with single central device and once it bonded it will do whitelist advertising at connection lost (whitelist has one address). If device in the range the central will connect and establish secure link with LTK.
Now I want to erase bond information from peer central device. Ok, it delete bond on central and do disconnect.
On nRF I receive BLE_GAP_EVT_DISCONNECTED
with ble_evt->evt.gap_evt.params.disconnected.reason == BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION
But device knows nothing about bond lost, it catches disconnect and start whitelist advertising with previously bonded device address.
I tested on Nexus7 and Windows 8.1. Nexus see this advertisement and able to connect and create new bond. The Win8.1 doesn't see. (I checked - adress remains the same all time on both central devices).
I need to notify in some way the peripheral about bond deletion to make it clear the whitelist. I found this thread https://devzone.nordicsemi.com/question/5735/problem-when-deleted-bonded-master-keeps-bond/ but think that my situation is different. Please help.