nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_hids_inp_rep_send()

uint32_t ble_hids_inp_rep_send ( struct ble_hids * hids,
uint16_t conn_handle,
struct ble_hids_input_report * report )

#include <ble_hids.h>

Function for sending Input Report.

Sends data on an Input Report characteristic.

Parameters
[in]hidsHID Service structure.
[in]conn_handleConnection handle, where the notification will be sent.
[in]reportHID input report.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hids or data are NULL.
NRF_ERROR_NOT_FOUNDUnknown connection handle.
NRF_ERROR_INVALID_PARAMReport index rep_index is invalid.
NRF_ERROR_DATA_SIZEReport data length len exceeds maximum characteristic length.