Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can Peripheral ask for bonding after Central connection?

Hi, we're using \nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_hids_keyboard to test Pairing/Bonding/whitelist.

After connection, when the central try to read a secured characteristic, the central send the bonding request and the peripheral reply and add the device to its whitelist. After disconnection whitelisted advertising is performed by periperal. Reset bonding and advertising restart without whitelist.

Is there a way, into peripheral code, to trigger the bonding/add to whitelist procedure directly after central connection? 

Thanks

Luca