Plugin qnx.bluetooth

qnx.bluetooth

Manage Bluetooth operations
Deprecated:
  • Deprecated

    Members

    ACCEPT_PASS_KEY

    Request to display dialog to confirm displayed passkey

    AUTHORIZE

    To allow remote device connect.

    DEVICE_CONNECTABLE_ONLY

    Connectable but not discoverable.

    DEVICE_DISCOVERABLE_ONLY

    Discoverable but not connectable.

    DEVICE_GENERAL_ACCESSIBLE

    General discoverable and connectable.

    DEVICE_LIMITED_ACCESSIBLE

    Limited discoverable and connectable.

    DEVICE_NOT_ACCESSIBLE

    Not discoverable or connectable.

    DISPLAY_PASS_KEY

    Request to display dialog display passkey

    LEGACY_PIN

    To exchange legacy PIN (usually hardcoded)

    PASS_KEY

    Request to display dialog to enter authorization passkey

    SERVICE_ALL

    Defines all allowed Profile ID for current device

    SERVICE_AVRCP

    Defines Advanced Audio Distribution Profile / Audio/Video Remote Control Profile ID

    SERVICE_HFP

    Defines Handsfree Profile ID

    SERVICE_MAP

    Defines Message Access Profile ID

    SERVICE_PAN

    Defines Personal Area Network ID

    SERVICE_PBAP

    Defines Phonebook Access Profile ID

    SERVICE_SPP

    Defines Serial Port Profile ID

    Methods

    connectService

    Connect to specified service on device with specified MAC address
    Parameters:
    Name Type Description
    service String Service identifier
    mac String MAC address of the device

    getConnectedDevices

    Get a list of connected devices for Bluetooth services
    Parameters:
    Name Type Description
    service String [optional] The Bluetooth service (e.g. SERVICE_HFP)

    getPaired

    Return a list of paired devices
    Returns:
    The currently paired device, or null
    Type
    • Object