nRF Connect SDK API 2.8.99
|
int bt_ancs_subscribe_notification_source | ( | struct bt_ancs_client * | ancs_c, |
bt_ancs_ns_notif_cb | func ) |
#include <include/bluetooth/services/ancs_client.h>
Function for writing to the CCCD to enable notifications from the Apple Notification Service.
[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. |