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

◆ bt_ancs_register_app_attr()

int bt_ancs_register_app_attr ( struct bt_ancs_client * ancs_c,
const enum bt_ancs_app_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_app_attr 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.