The callback prototype to indicate the service has been disconnected.


#include <btapi/bthid.h>
typedef void(* bt_hid_service_disconnected_cb)(int reason);


EOK indicates a successful service connection; otherwise an error code indicates the reason for the connection failure. The following error codes can be returned:
  • EACCES: An authentication or pairing failure has occurred.
  • ENOTCONN: There is no connection.
  • ECONNREFUSED: The connection was refused because the connection parameters provided are invalid.
  • ECONNRESET: The remote party has terminated the connection.
  • ENETUNREACH: A page timeout has occurred.
  • EPROTO: The operation has failed because the response from the remote Bluetooth-enabled device had a protocol error.
  • ETIMEOUT: The connection attempt has timed out.


BlackBerry 10.2.0


libbtapi (For the qcc command, use the -l btapi option to link against this library)


Last modified: 2014-05-14

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus