Definitions in btdevice.h

Preprocessor macro definitions for the btdevice.h header file in this library.

Definitions:

#define BT_EVT_ACCESS_CHANGED 0x00
Discovery mode has changed.

Since: BlackBerry 10.0.0

#define BT_EVT_RADIO_SHUTDOWN 0x01
The Bluetooth radio has been turned off.

Since: BlackBerry 10.0.0

#define BT_EVT_RADIO_INIT 0x02
The Bluetooth radio has been initialized or has just started.

Since: BlackBerry 10.0.0

#define BT_EVT_CONFIRM_NUMERIC_REQUEST 0x03
A numeric comparison pairing has been requested.

Since: BlackBerry 10.0.0

#define BT_EVT_PAIRING_COMPLETE 0x04
A Bluetooth pairing operation has been completed.

For low energy devices, the event_data field indicates whether the address is public (0) or private (1).

Since: BlackBerry 10.0.0

#define BT_EVT_DEVICE_ADDED 0x05
A Bluetooth device has been found and added to the cached list.

For low energy devices, the event_data field indicates whether the address is public (0) or private (1).

Since: BlackBerry 10.0.0

#define BT_EVT_DEVICE_DELETED 0x06
A Bluetooth device has been removed from the cached list.

For low energy devices, the event_data field indicates whether the address is public (0) or private (1).

Since: BlackBerry 10.0.0

#define BT_EVT_SERVICE_CONNECTED 0x07
A Bluetooth device has connected to a service.

Since: BlackBerry 10.0.0

#define BT_EVT_SERVICE_DISCONNECTED 0x08
A Bluetooth device has disconnected from a service.

Since: BlackBerry 10.0.0

#define BT_EVT_FAULT 0x09
A Bluetooth stack fault has occurred, and Bluetooth must be reset to continue.

Since: BlackBerry 10.0.0

#define BT_EVT_DEVICE_CONNECTED 0x0A
A classic Bluetooth device has connected to the BlackBerry device.

Since: BlackBerry 10.2.0

#define BT_EVT_DEVICE_DISCONNECTED 0x0B
A classic Bluetooth device has disconnected from the BlackBerry device.

The event_data field provides the error code that indicates why the device disconnected.

Since: BlackBerry 10.2.0

#define BT_EVT_NAME_UPDATED 0x0C
A classic Bluetooth name has been retrieved for a remote device (see bt_rdev_update_friendly_name()).

Since: BlackBerry 10.2.0

#define BT_EVT_LE_DEVICE_CONNECTED 0x0D
A low energy Bluetooth device has connected to the BlackBerry device.

Since: BlackBerry 10.2.0

#define BT_EVT_LE_DEVICE_DISCONNECTED 0x0E
A low energy Bluetooth device has disconnected from the BlackBerry device.

The event_data field provides the error code that indicates why the device disconnected.

Since: BlackBerry 10.2.0

#define BT_EVT_LE_NAME_UPDATED 0x0F
A low energy Bluetooth name has been retrieved for a remote device (see bt_rdev_update_friendly_name()).

Since: BlackBerry 10.2.0

#define BT_EVT_SERVICES_UPDATED 0x10
A classic Bluetooth device has updated its service records (see bt_rdev_get_services()).

Since: BlackBerry 10.2.0

#define BT_EVT_GATT_SERVICES_UPDATED 0x11
A classic Bluetooth device has updated its GATT services (see bt_rdev_get_services_gatt()).

Since: BlackBerry 10.2.0

#define BT_EVT_LE_GATT_SERVICES_UPDATED 0x12
A low energy Bluetooth device has updated its GATT services (see bt_rdev_get_services_gatt()).

Since: BlackBerry 10.2.0

#define BT_EVT_PAIRING_DELETED 0x13
An event to indicate that the bonding or pairing information has been removed.

For low energy devices, the event_data field indicates whether the address is public (0) or private (1).

Since: BlackBerry 10.3.0

#define BT_EVT_PAIRING_STARTED 0x14
An event to indicate that the pairing process for the device has started.

For low energy devices, the event_data field indicates whether the address is public (0) or private (1).

Since: BlackBerry 10.3.0

#define BT_EVT_PAIRING_FAILED 0x15
An event to indicate that the pairing process for the device has failed.

For low energy devices, the event_data field indicates whether the address is public (0) or private (1).

Since: BlackBerry 10.3.0

#define BT_EVT_UNDEFINED_EVENT 0xFF
An undefined value to handle unrecognized events.

Since: BlackBerry 10.0.0

#define BT_EVT_SDP_RECORD_RECEIVED BT_EVT_UNDEFINED_EVENT
An event to indicate that an SDP record has been received.

Deprecated:

BlackBerry 10.3.0. This event is internal only and is not sent to third party applications.

#define BT_EVT_ALL_EVENT BT_EVT_UNDEFINED_EVENT
Used to define all events when performing event filtering.

Since: BlackBerry 10.3.0

#define BT_DISCOVERY_CACHED 0x01
Retrieve all cached devices from the last Bluetooth scan operation.

Since: BlackBerry 10.0.0

#define BT_DISCOVERY_PREKNOWN 0x02
Retrieve all known (paired) devices.

Since: BlackBerry 10.0.0

#define BT_DISCOVERY_CONNECTED 0x04
Retrieve all connected devices.

Since: BlackBerry 10.0.0

#define BT_DISCOVERY_ALL ( BT_DISCOVERY_CACHED | BT_DISCOVERY_PREKNOWN )
Retrieve all devices.

Since: BlackBerry 10.0.0

#define BT_TRUSTED_NO 0x00
Connections from remote Bluetooth device are not automatically trusted.

Since: BlackBerry 10.0.0

#define BT_TRUSTED_YES 0x01
Connections from remote Bluetooth device are automatically trusted.

Since: BlackBerry 10.0.0

#define BT_ENCRYPTED_NO 0x00
Connections to the remote device are not encrypted.

Since: BlackBerry 10.0.0

#define BT_ENCRYPTED_YES 0x01
Connections to the remote device are encrypted.

Since: BlackBerry 10.0.0

#define BT_DEVICE_TYPE_REGULAR 0x20
Device is a regular Bluetooth-enabled device.

Since: BlackBerry 10.0.0

#define BT_DEVICE_TYPE_LE_PUBLIC 0x00
Device supports low-energy and public access.

Since: BlackBerry 10.0.0

#define BT_DEVICE_TYPE_LE_PRIVATE 0x01
Device supports low-energy and private access.

Since: BlackBerry 10.0.0

#define BT_DEVICE_TYPE_UNKNOWN 0xFF
Device type unknown (indicating a device structure for a device which has not been discovered).

Since: BlackBerry 10.0.0

#define BT_DUAL_MODE_UNKNOWN 0x00
Dual mode status unknown for this device.

Since: BlackBerry 10.2.0

#define BT_DUAL_MODE_SUPPORTED 0x01
Device supports dual mode but not simultaneous connections.

Since: BlackBerry 10.2.0

#define BT_DUAL_MODE_SUPPORTED_SIMULTANEOUS 0x02
Device supports dual mode and allows simultaneous connections.

Since: BlackBerry 10.2.0

#define BT_DUAL_MODE_NOT_SUPPORTED 0x03
Device does not support dual mode.

Since: BlackBerry 10.2.0

#define BT_FEATURE_STATUS_NOTSUP 0x0001
Feature not supported by device.

Since: BlackBerry 10.1.0

#define BT_FEATURE_STATUS_PARENT 0x0002
Disabled by parent feature.

Since: BlackBerry 10.1.0

#define BT_FEATURE_STATUS_USER 0x0004
Disabled by user selection.

Since: BlackBerry 10.1.0

#define BT_FEATURE_STATUS_CARRIER 0x0008
Disabled by carrier settings.

Since: BlackBerry 10.1.0

#define BT_FEATURE_STATUS_ITPOLICY 0x0010
Disabled by information technology (IT) policy.

Since: BlackBerry 10.1.0

#define BT_FEATURE_STATUS_RESERVED 0x8000
Reserved.

Since: BlackBerry 10.1.0

#define BT_OOB_ROLE_UNKNOWN (-1)
The OOB role is unspecified.

Since: BlackBerry 10.1.0

#define BT_OOB_ROLE_REQUESTER 0
This side is the requester.

Since: BlackBerry 10.1.0

#define BT_OOB_ROLE_SELECTOR 1
This side is the selector.

Since: BlackBerry 10.1.0

Library:

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

Last modified: 2014-06-24



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

comments powered by Disqus