nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_bas_client_bl_read()

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.

Parameters
bas_clientBattery Service client structure.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf bas_client is NULL.
NRF_ERROR_INVALID_STATEIf the connection handle is invalid.