Sends a report as a response to the bt_hid_report_req_cb callback.
Synopsis:
#include <btapi/bthid.h>
int bt_hid_get_report_res(bt_hid_result_t result, const bt_hid_report_t *report)
Arguments:
- result
-
Use BT_HID_RESULT_SUCCESS to respond to the request with a report, or else indicate an error.
- report
-
The requested report to send.
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Description:
An application must call this function in response to the bt_hid_report_req_cb callback.
Returns:
0 if the response 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.