![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_bas_client_bl_read | ( | struct ble_bas_client * | bas_client | ) |
#include <ble_bas_client.h>
Read the Battery Level characteristic.
The battery measurement is reported asynchronously to the application with the BLE_BAS_CLIENT_EVT_BATT_READ_RESP event.
| bas_client | Battery Service client structure. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If bas_client is NULL. |
| NRF_ERROR_INVALID_STATE | If the connection handle is invalid. |