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

◆ bt_bas_notify_cb

typedef void(* bt_bas_notify_cb) (struct bt_bas_client *bas, uint8_t battery_level)

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

Value notification callback.

This function is called every time the server sends a notification for a changed value.

Parameters
basBAS Client object.
battery_levelThe notified battery level value, or BT_BAS_VAL_INVALID if the notification was interrupted by the server (NULL received from the stack).