nRF Connect SDK API 2.8.99
|
int bt_bas_read_battery_level | ( | struct bt_bas_client * | bas, |
bt_bas_read_cb | func ) |
#include <include/bluetooth/services/bas_client.h>
Read the battery level value from the device.
This function sends a read request to the connected device.
bas | BAS Client object. |
func | The callback function. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |