postBLEBigDataChannelWithProgress
Requires:
DeviceKit≥3.0.0@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
postBLEBigDataChannelWithProgress(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Big-data channel operations with progress feedback. Different feedback is returned to the frontend via these events: 1. Device-to-app big-data transfer success: 【onBLEBigDataChannelDeviceToAppSuccess】; 2. Cloud upload progress: 【onBLEBigDataChannelUploadCloudProgress】; 3. BLE data channel transfer progress: 【onBLEBigDataChannelProgressEvent】
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
deviceId | string | Yes | deviceId Device ID | — |
requestParams | Record<string, Record<string, any>> | Yes | Parameters required to establish data transfer command: Specific channel operation command; start/stop: open/close the big-data channel; type: data type to upload requestParams Channel command set { "command": "start", "type": "1" } | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | (params: Object) => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
success callback parameters
| Property | Type | Description | DeviceKit Since | Minimum SDK versions |
|---|---|---|---|---|
deviceId | string | deviceId Device ID | v3.3.0 | — |
resultParams | Record<string, Record<string, any>> | Parameters upon completion of data transfer (type dps fileUrl) resultParams Parameters upon completion of data transfer | v3.3.0 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None