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

◆ bt_ancs_register_attr()

int bt_ancs_register_attr ( struct bt_ancs_client ancs_c,
const enum bt_ancs_notif_attr_id_val  id,
uint8_t *  data,
const uint16_t  len 
)

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

Function for registering attributes that will be requested when bt_ancs_request_attrs is called.

Parameters
[in]ancs_cANCS client instance on which the attribute is registered.
[in]idID of the attribute that is added.
[in]dataPointer to the buffer where the data of the attribute can be stored.
[in]lenLength of the buffer where the data of the attribute can be stored.
Return values
0If all operations are successful. Otherwise, a (negative) error code is returned.