nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_bas_get_last_battery_level()

int bt_bas_get_last_battery_level ( struct bt_bas_client bas)

#include <include/bluetooth/services/bas_client.h>

Get the last known battery level.

This function returns the last known battery level value. The battery level is stored when a notification or read response is received.

Parameters
basBAS Client object.
Returns
Battery level or negative error code.