bt_hid_set_report_res()

Send a response to a received report.

Synopsis:

#include <btapi/bthid.h>
 
int bt_hid_set_report_res(bt_hid_result_t result)

Since:

BlackBerry 10.2.0

Arguments:

result

Use BT_HID_RESULT_SUCCESS to successfully acknowledge the report, or else indicate an error.

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_set_cb callback.

Returns:

0 if the response is 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.