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

◆ bt_hogp_rep_unsubscribe()

int bt_hogp_rep_unsubscribe ( struct bt_hogp * hogp,
struct bt_hogp_rep_info * rep )

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

Remove the subscription for a selected report.

When the subscription has been cleared the callback function will be called with data set to NULL. This will happen both on successful unsubscription as well as on CCC write error.

Parameters
hogpHOGP object.
repReport object.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.