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

◆ bt_ancs_subscribe_notification_source()

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.

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.