Use this API to initialize the Bluetooth adapter. This must be called before using any other Bluetooth APIs.Documentation Index
Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Code Example
Basic Usage
Check Bluetooth Before Operations
Error Codes
| Code | Description |
|---|---|
| 10001 | Bluetooth is not enabled on the device |
| 10000 | Bluetooth adapter not initialized |
Related APIs
my.closeBluetoothAdapter
Close Bluetooth adapter
my.startBluetoothDevicesDiscovery
Start device discovery