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

◆ bt_hogp_rep_subscribe()

int bt_hogp_rep_subscribe ( struct bt_hogp hogp,
struct bt_hogp_rep_info *  rep,
bt_hogp_read_cb  func 
)

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

Subscribe to report notifications.

This function may be called only on Input type reports.

Parameters
hogpHOGP object.
repReport object.
funcFunction to be called to handle the notificated value.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.