Returns the list of services exposed by a connected Bluetooth Low Energy device.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 |
|---|---|---|---|
| deviceId | String | Yes | Device identifier from discovery |
| 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 |
|---|---|---|
| services | Array | List of service objects |
Service Object
| Property | Type | Description |
|---|---|---|
| serviceId | String | Service UUID |
| isPrimary | Boolean | Whether this is a primary service |
Code Example
Related APIs
my.getBLEDeviceCharacteristics
Get service characteristics
my.connectBLEDevice
Connect to BLE device