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

◆ bt_bas_read_battery_level()

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.

Parameters
basBAS Client object.
funcThe callback function.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.