Use this API to get the current state of the Bluetooth adapter, including whether it’s available and discovering devices.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 |
Success Callback Parameters
| Property | Type | Description |
|---|---|---|
| available | Boolean | Whether Bluetooth is available |
| discovering | Boolean | Whether currently discovering devices |
Code Example
Basic Usage
Check Before Operations
Status Display
Related APIs
my.openBluetoothAdapter
Initialize Bluetooth
my.onBluetoothAdapterStateChange
Listen for state changes