Send a report to the remote device.
Synopsis:
#include <btapi/bthid.h>
int bt_hid_send_interrupt(bt_hid_report_t const *report)
Arguments:
- report
-
The requested report to send.
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Description:
This function is used to send a report to the remote device. An application can call this function as a response to human input, such as a mouse movement or a key press.
Returns:
0 if the report has been successfully sent, or
-1 with the
errno set otherwise. The error codes that can be returned are as follows:
- EPERM: The bt_hid_init() function was not called or did not complete successfully.
- ENODEV: A connection cannot be found.
- ENOMEM: Insufficient memory is available to perform the request.
- ESRVRFAULT: An internal error has occurred.