![]() |
nRF Connect SDK API 3.3.99
|
| int bt_bas_start_per_read_battery_level | ( | struct bt_bas_client * | bas, |
| int32_t | interval, | ||
| bt_bas_notify_cb | func ) |
#include <include/bluetooth/services/bas_client.h>
Periodically read the battery level value from the device with specific time interval.
| bas | BAS Client object. |
| interval | Characteristic Read interval in milliseconds. |
| func | The callback function. |
| 0 | If the operation was successful. Otherwise, a (negative) error code is returned. |