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 |
Battery Service related handles found on the peer device. This will be filled if the evt_type is BLE_BAS_C_EVT_DISCOVERY_COMPLETE.
uint8_t ble_bas_c_evt_t::battery_level |
Battery level received from peer. This field will be 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 relevent to this event.
ble_bas_c_evt_type_t ble_bas_c_evt_t::evt_type |
Event Type.