Disconnect the HID Device service.
Synopsis:
#include <btapi/bthid.h>
int bt_hid_disconnect()
Arguments:
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Description:
If your HID Device application is still connected, this function closes the service.
Returns:
0 is returned when the service is successfully disconnected,
-1 with the
errno set otherwise. The
errno can be set to one of the following values:
- EPERM: The bt_hid_init() function was not called or did not complete successfully.
- ENODEV: A connection cannot be found.