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

◆ ble_conn_state_valid()

bool ble_conn_state_valid ( uint16_t conn_handle)

#include <ble_conn_state.h>

Check whether a connection handle represents a valid connection.

A connection might be valid and have a BLE_CONN_STATUS_DISCONNECTED status. Those connections are invalidated after a new connection occurs.

Parameters
[in]conn_handleHandle of the connection.
Return values
trueIf conn_handle represents a valid connection, thus a connection for which we have a record.
falseIf conn_handle is BLE_GAP_ROLE_INVALID, or if it has never been recorded.