postBLEBigDataChannelWithProgress(params: Object)
Requires:
DeviceKit≥3.0.0@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
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 |
|---|---|---|---|
deviceId | string | Yes | deviceId Device ID |
| 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 |
|---|---|---|---|
deviceId | string | deviceId Device ID | v3.3.0 |
| 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