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

◆ bt_bas_start_per_read_battery_level()

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.

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