![]() |
nRF Connect SDK API 3.4.99
|
| 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 <ancs_client.h>
Function for registering attributes that will be requested when bt_ancs_request_attrs is called.
| [in] | ancs_c | ANCS client instance on which the attribute is registered. |
| [in] | id | ID of the attribute that is added. |
| [in] | data | Pointer to the buffer where the data of the attribute can be stored. |
| [in] | len | Length of the buffer where the data of the attribute can be stored. |
| 0 | If all operations are successful. Otherwise, a (negative) error code is returned. |