Bond information retention issue in BLE server

Hello,

Is there a way to for the server to confirm if the client is bonded or not?

For instance,if the client deletes the bonding information,how can the server ensure that it is not bonded and hence wait for pairing to be initiated by master/client?

Thanks.

@rodeb

If you want to check if a Peer device still has the Bond information, you will have to use the process outlined by the BLE Spec below:

image

Essentially, if a device has local bond information for a peer, it should attempt to enable encryption on every re-connect. If the encryption fails (likely because one device has lost the LTK, and therefore the Bond), the devices should performing the pairing procedure to replace or repair any missing Bond information.