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

◆ bt_ancs_subscribe_data_source()

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.

Parameters
[in]ancs_cANCS client instance.
[in]funcCallback function for handling notification.
Return values
0If writing to the CCCD was successful. Otherwise, a (negative) error code is returned.