Hi,
I am currently trying to work with pairing and bonding between the peripheral and Central device.
I am using two nrf52840 dk one as central and the other as peripheral. I am able to pair and bond with the device using the passkey entry. I used this Example to code my peripheral device
Pairing process - Nordic Developer Academy exercise 2. And used central_Uart code to program my central device with modifications done to enter passkey value.
Everything seems to be working, just the way it works when I use the NRF connect app to connect to my peripheral device.
I am using the un-bonding code after the BLE initialization stage, (to mimic the forget device part when using the app after the bond is deleted from the peripheral device), so every time I reset my central device old pairing information is deleted and a new bond is created.
I tried to use the unpair code within the auth_cancel or pairing failed callbacks, but the callbacks don't get triggered even after I call this multiple times,