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

◆ bt_ras_rreq_subscription_change_cb_register()

int bt_ras_rreq_subscription_change_cb_register ( struct bt_conn * conn,
bt_gatt_subscribe_func_t subscription_change_cb )

#include <include/bluetooth/services/ras.h>

Register a callback for GATT subscriptions and unsubscriptions attempted by the RREQ.

Note
This callback will not be called when attempting to subscribe or unsubscribe to a characteristic to which the device is already subscribed or unsubscribed (respectively).
Parameters
[in]connConnection object.
[in]subscription_change_cbCCC write request response callback.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.