You can use the Bluetooth API functions to perform essential
Bluetooth tasks such as initialization, searching for and pairing with remote devices, and retrieving device information.
Initialize the device
Before calling any other Bluetooth functions in btdevice.h, you must initialize the Bluetooth device.
Search for remote devices
You can scan for Bluetooth enabled devices and retrieve information about discovered devices.
Pair with a remote device
Once you discover another Bluetooth device, you can pair with it using a simple API call.
Look up local device information
You can use Bluetooth APIs to query different aspects of the local device such as basic device information and various Bluetooth properties.
Look up remote device information
The Bluetooth APIs provide functions to query various aspects of a remote device such as basic device information, services, and low energy parameters, if applicable.
Use the SPP service
The Bluetooth library allows you to connect to a Serial Port Profile (SPP) service and exchange data with another Bluetooth enabled device. Your BlackBerry 10 device can act as either an SPP server or SPP client.
Use the GATT service
The Bluetooth APIs provide easy access to the Generic Attribute Profile (GATT) capabilities on your device. All you need to do is to connect to the GATT service and retrieve the characteristics of the service.
Clean up
Before your program exits, you must free the resources allocated for it.