nRF Connect SDK API 2.8.99
|
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.
hogp | HOGP object. |
rep | Report object. |
func | Function to be called to handle the notificated value. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |