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

◆ bt_bas_subscribe_battery_level()

int bt_bas_subscribe_battery_level ( struct bt_bas_client bas,
bt_bas_notify_cb  func 
)

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

Subscribe to the battery level value change notification.

Parameters
basBAS Client object.
funcCallback function handler.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.
-ENOTSUPSpecial error code used if the connected server does not support notifications.