nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ pm_handler_disconnect_on_sec_failure()

void pm_handler_disconnect_on_sec_failure ( const struct pm_evt * pm_evt)

#include <peer_manager_handler.h>

Auxiliary standard function for disconnecting when the connection could not be secured.

This function disconnects whenever connection security fails, i.e. whenever it receives a PM_EVT_CONN_SEC_FAILED.

Note
In normal circumstances, this function should be called for every Peer Manager event.
This function is a supplement to pm_handler_on_pm_evt, not its replacement.
Parameters
[in]pm_evtPeer Manager event to handle.