Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| deviceId | String | Yes | Device identifier |
| serviceId | String | Yes | Service UUID |
| 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 |
|---|---|---|
| characteristics | Array | List of characteristic objects |
Characteristic Object
| Property | Type | Description |
|---|---|---|
| characteristicId | String | Characteristic UUID |
| serviceId | String | Parent service UUID |
| properties | Object | Supported operations: read, write, notify, indicate |
Code Example
Related APIs
my.getBLEDeviceServices
Get device services
my.readBLECharacteristicValue
Read a characteristic value