bt_hid_get_idle_res()

Send the current idle rate as a response to the bt_hid_idle_req_cb callback.

Synopsis:

#include <btapi/bthid.h>
 
int bt_hid_get_idle_res(bt_hid_result_t result, bt_hid_idle_rate_t idlerate)

Since:

BlackBerry 10.2.0

Arguments:

result

Use BT_HID_RESULT_SUCCESS to respond to the request with an idle rate, or else indicate an error.

idlerate

The current idle rate.

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_idle_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.