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