![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_bas_client_bl_notif_enable | ( | struct ble_bas_client * | bas_client | ) |
#include <ble_bas_client.h>
Enable notifications on the Battery Level characteristic.
This function enables the notification of the Battery Level characteristic at the peer by writing to the CCCD of the Battery Level Characteristic.
| bas_client | Battery Service client structure. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If bas_client is NULL. |
| NRF_ERROR_INVALID_STATE | If the connection handle is invalid. |