nRF Connect SDK API 2.8.99
|
int bt_ancs_subscribe_data_source | ( | struct bt_ancs_client * | ancs_c, |
bt_ancs_ds_notif_cb | func ) |
#include <include/bluetooth/services/ancs_client.h>
Function for writing to the CCCD to enable data source notifications from the ANCS.
[in] | ancs_c | ANCS client instance. |
[in] | func | Callback function for handling notification. |
0 | If writing to the CCCD was successful. Otherwise, a (negative) error code is returned. |