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

what code is returned when a bonded peripheral does not respond to s120 Central sending Start Encryption Response

The S120 Central after scanning, connecting, and issues a sd_ble_gap_encrypt() to secure the link.  If the peripheral's bond (LTK) is corrupted or incorrect, the sniffer shows that the peripheral never replies to the Central send of a Start Encryption Response message.

What does the soft device return in this case.

I need to know this because we want to delete the bond whenever this happens.  It is not clear how the application will know that this actually occurred (periph has bad bond info).

Related