nRF Connect SDK API 0.1.0
|
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.
hogp | HOGP object. |
rep | Report object. |
err | ATT error code. |
data | Pointer to the received data. |
BT_GATT_ITER_STOP | Stop notification. |
BT_GATT_ITER_CONTINUE | Continue notification. |