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

◆ bt_hids_inp_rep_send()

int bt_hids_inp_rep_send ( struct bt_hids * hids_obj,
struct bt_conn * conn,
uint8_t rep_index,
uint8_t const * rep,
uint8_t len,
bt_gatt_complete_func_t cb )

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

Send Input Report.

Note
The function is not thread safe. It cannot be called from multiple threads at the same time.
Parameters
hids_objPointer to HIDS instance.
connPointer to Connection Object.
rep_indexIndex of report descriptor.
repPointer to the report data.
lenLength of report data.
cbNotification complete callback (can be NULL).
Returns
0 If the operation was successful. Otherwise, a (negative) error code is returned.