![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | conn_handle | Handle of the connection. |
| true | If conn_handle represents a valid connection, thus a connection for which we have a record. |
| false | If conn_handle is BLE_GAP_ROLE_INVALID, or if it has never been recorded. |