Battery Service Client Event structure. More...
#include <ble_bas_c.h>
Data Fields | |
ble_bas_c_evt_type_t | evt_type |
uint16_t | conn_handle |
union { | |
ble_bas_c_db_t bas_db | |
uint8_t battery_level | |
} | params |
Battery Service Client Event structure.
ble_bas_c_db_t ble_bas_c_evt_t::bas_db |
Handles related to the Battery Service, found on the peer device. This is filled if the evt_type is BLE_BAS_C_EVT_DISCOVERY_COMPLETE.
uint8_t ble_bas_c_evt_t::battery_level |
Information about the battery level, received from peer. This field is used for the events BLE_BAS_C_EVT_BATT_NOTIFICATION and BLE_BAS_C_EVT_BATT_READ_RESP.
uint16_t ble_bas_c_evt_t::conn_handle |
Connection handle relevant to this event.
ble_bas_c_evt_type_t ble_bas_c_evt_t::evt_type |
Event Type.