1.URL
http://124.223.60.234:8080/system/asset/command/sendOtaCommand
or Server in US
https://cloud.aovx.com/prod/system/asset/command/sendOtaCommand
2.Request parameters
2.1.Request headers
Add token in Headers: After successful login verification, the corresponding tokenId in user login response data.
2.2.Parameters example
{
"terminalIds":["1957EE0C69614AB3B3AF2755103B0AB6"],
"type":0,
"mode":0,
"protocol":1,
"version":"natives_blob",
"fileUrl":"http://124.223.60.234:8888/FOTA/103/natives_blob.bin"
}
2.3.Parameters description
Field | Data type | description | required |
---|---|---|---|
terminalIds | List | Unique identification of device in the system | Y |
type | int | Upgrade type: 0: App upgrade; 1: Code upgrade | Y |
mode | int | Upgrade mode: 0: Whole package upgrade; 1: Differential upgrade | Y |
protocol | int | Upgrade protocol: 0: FTP; 1:HTTP; Default 1: HTTP protocol | Y |
version | int | Upgrade version number | Y |
fileUrl | String | Upgrade package url, corresponding to the OTA file connection in OTA file management | Y |
3.Response content
3.1.Response example
{
"code": 200,
"message": "Operation succeeded",
"data": null
}
3.2.Response description
Field | Data type | description |
---|---|---|
code | int | Return code |
message | String | Return message |
data | object | Response data |
作者:admin 创建时间:2023-04-25 11:54
最后编辑:admin 更新时间:2024-12-27 19:48
最后编辑:admin 更新时间:2024-12-27 19:48