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

◆ pm_conn_sec_status_get()

uint32_t pm_conn_sec_status_get ( uint16_t conn_handle,
struct pm_conn_sec_status * conn_sec_status )

#include <peer_manager.h>

Get the security status of a connection.

Parameters
[in]conn_handleConnection handle of the link as provided by the SoftDevice.
[out]conn_sec_statusSecurity status of the link.
Return values
NRF_SUCCESSIf pairing was initiated successfully.
BLE_ERROR_INVALID_CONN_HANDLEIf the connection handle is invalid.
NRF_ERROR_NULLIf conn_sec_status was NULL.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.