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

◆ ble_conn_state_role()

uint8_t ble_conn_state_role ( uint16_t conn_handle)

#include <ble_conn_state.h>

Get the role of the local device in a connection.

Parameters
[in]conn_handleHandle of the connection to get the role for.
Returns
The role of the local device in the connection (see BLE_GAP_ROLES). If conn_handle is not valid, the function returns BLE_GAP_ROLE_INVALID.