| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
ble_bas_c_evt_t Struct Reference
Structures

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

## Detailed Description

Battery Service Client Event structure.

## Field Documentation

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.