Send a response to a received idle rate.
Synopsis:
#include <btapi/bthid.h>
int bt_hid_set_idle_res(bt_hid_result_t result)
Arguments:
- result
-
Use BT_HID_RESULT_SUCCESS to successfully acknowledge the idle rate, 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_idle_set_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.