nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_bas_client_bl_notif_enable()

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.

Parameters
bas_clientBattery Service client structure.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf bas_client is NULL.
NRF_ERROR_INVALID_STATEIf the connection handle is invalid.
Returns
In addition, this function may return any error returned by the following functions: