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

◆ bt_hogp_read_cb

typedef uint8_t(* bt_hogp_read_cb) (struct bt_hogp *hogp, struct bt_hogp_rep_info *rep, uint8_t err, const uint8_t *data)

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

Callback function that is called when a notification or read response is received.

This function is called when new data related to the given report object appears. The data size can be obtained from the report object from the bt_hogp_rep_info::size field.

Parameters
hogpHOGP object.
repReport object.
errATT error code.
dataPointer to the received data.
Return values
BT_GATT_ITER_STOPStop notification.
BT_GATT_ITER_CONTINUEContinue notification.