nRF Connect SDK API 0.1.0
|
int bt_hogp_rep_write | ( | struct bt_hogp * | hogp, |
struct bt_hogp_rep_info * | rep, | ||
bt_hogp_write_cb | func, | ||
const void * | data, | ||
uint8_t | length | ||
) |
#include <include/bluetooth/services/hogp.h>
Send a write request addressing the report value descriptor.
Note that In reports might not support this function. In this case, this function may succeed but pass an ATT error code to the callback function.
hogp | HOGP object. |
rep | Report object. |
func | Function to be called to process the response. |
data | Data to be sent. |
length | Data size. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |