Module for storing data on BLE connections. More...
Modules | |
BLE connection state functions | |
Macros | |
#define | BLE_CONN_STATE_N_USER_FLAGS 16 |
Enumerations | |
enum | ble_conn_state_status_t { BLE_CONN_STATUS_INVALID, BLE_CONN_STATUS_DISCONNECTED, BLE_CONN_STATUS_CONNECTED } |
Connection handle statuses. More... | |
enum | ble_conn_state_user_flag_id_t { BLE_CONN_STATE_USER_FLAG0 = 0, BLE_CONN_STATE_USER_FLAG1, BLE_CONN_STATE_USER_FLAG2, BLE_CONN_STATE_USER_FLAG3, BLE_CONN_STATE_USER_FLAG4, BLE_CONN_STATE_USER_FLAG5, BLE_CONN_STATE_USER_FLAG6, BLE_CONN_STATE_USER_FLAG7, BLE_CONN_STATE_USER_FLAG8, BLE_CONN_STATE_USER_FLAG9, BLE_CONN_STATE_USER_FLAG10, BLE_CONN_STATE_USER_FLAG11, BLE_CONN_STATE_USER_FLAG12, BLE_CONN_STATE_USER_FLAG13, BLE_CONN_STATE_USER_FLAG14, BLE_CONN_STATE_USER_FLAG15, BLE_CONN_STATE_USER_FLAG_INVALID } |
One ID for each user flag collection. More... | |
Module for storing data on BLE connections.
This module stores certain states for each connection, which can be queried by connection handle. The module uses BLE events to keep the states updated.
In addition to the preprogrammed states, this module can also keep track of a number of binary user states, or user flags. These are reset to 0 for new connections, but otherwise not touched by this module.
This module uses the Mapped flags module, with connection handles as keys and the connection states as flags.
To function properly, this module must be provided with BLE events from the SoftDevice through the ble_conn_state_on_ble_evt() function. This module should be the first to receive BLE events if they are dispatched to multiple modules.
#define BLE_CONN_STATE_N_USER_FLAGS 16 |
The number of available user flags.
Connection handle statuses.
One ID for each user flag collection.
These IDs are used to identify user flag collections in the API calls.