Hello, with Android 5.0 BLE central and S110 8.0 peripheral I do this:
-
Erase all bonds in device_manager_peripheral.c
-
Check that m_peer_table contains zero record. All records are 0xFFFFFF.....
-
Connect and bond central and peripheral device.
-
Disconnect and check that m_peer_table contains one record.
-
Connect central and peripheral for the second time.
-
I can see that device_instance_find returns NRF_ERROR_NOT_FOUND (probably because Android changed its MAC address) and that another bond is saved by device manager when the link is secured during this second session.
Why? I thought that when bond is created between two devices then it is reused later when the link has to be secured.
This way I don't see any advantage using bonds... Or did I miss something?
How to make device manager find stored bond for device that changed its MAC address?