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

◆ bt_hogp_rep_write()

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.

Parameters
hogpHOGP object.
repReport object.
funcFunction to be called to process the response.
dataData to be sent.
lengthData size.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.