nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ peer_state

enum peer_state

#include <include/caf/events/ble_common_event.h>

Peer states.

State of the Bluetooth connected peer.

Enumerator
PEER_STATE_DISCONNECTED 

Bluetooth stack disconnected from the remote peer.

PEER_STATE_DISCONNECTING 

An application module called bt_conn_disconnect() to disconnect the remote peer. This state can be reported by the module that requests peer disconnection to let other application modules prepare for the planned disconnection.

PEER_STATE_CONNECTED 

Bluetooth stack successfully connected to the remote peer.

PEER_STATE_SECURED 

Bluetooth stack set the connection security to at least level 2 (that is, encryption and no authentication).

PEER_STATE_CONN_FAILED 

Bluetooth stack failed to connect the remote peer.

PEER_STATE_COUNT 

Number of peer states.

APP_EM_ENFORCE_ENUM_SIZE 

Unused in code, required for inter-core compatibility.