Use this API to get all Bluetooth devices discovered during the current session, including devices that are no longer in range.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 |
|---|---|---|
| devices | Array | List of discovered devices |
Device Object Properties
| Property | Type | Description |
|---|---|---|
| deviceId | String | Device identifier |
| name | String | Device name (may be empty) |
| RSSI | Number | Signal strength |
| advertisData | ArrayBuffer | Advertisement data |
| advertisServiceUUIDs | Array | Advertised service UUIDs |
Code Example
Basic Usage
Display Device List
Sort by Signal Strength
Related APIs
my.onBluetoothDeviceFound
Listen for new devices
my.getConnectedBluetoothDevices
Get connected devices