nRF Connect SDK API 2.8.99
|
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.
bas | BAS Client object. |
func | Callback function handler. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |
-ENOTSUP | Special error code used if the connected server does not support notifications. |