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

◆ ble_conn_state_lesc()

bool ble_conn_state_lesc ( uint16_t conn_handle)

#include <ble_conn_state.h>

Check whether a connection was bonded using LE Secure Connections (LESC).

The connection must currently be encrypted.

Note
This function will report false if bonded, and the LESC bonding was unauthenticated ("Just Works") and happened in a previous connection. To detect such cases as well, check the stored bonding key, e.g. in Peer Manager, which has a LESC flag associated with it.
Parameters
[in]conn_handleHandle of connection to get the LESC state for.
Return values
trueIf the connection was bonded using LESC.
falseIf the connection has not been bonded using LESC, or conn_handle is invalid.