Battery Service Client

nRF5 SDK v16.0.0

Battery Service Client module. More...

Macros

#define BLE_BAS_C_DEF (_name)
Macro for defining a ble_bas_c instance. More...
#define BLE_BAS_C_ARRAY_DEF (_name, _cnt)
Macro for defining multiple ble_bas_c instances. More...

Detailed Description

Battery Service Client module.

This module contains APIs to read and interact with the Battery Service of a remote device.

Note
The application must register this module as the BLE event observer by using the NRF_SDH_BLE_OBSERVER macro. Example:

Macro Definition Documentation

#define BLE_BAS_C_ARRAY_DEF ( _name,
_cnt
)

Macro for defining multiple ble_bas_c instances.

Parameters
_name Name of the array of instances.
_cnt Number of instances to define.
#define BLE_BAS_C_DEF ( _name )

Macro for defining a ble_bas_c instance.

Parameters
_name Name of the instance.