1.URL
http://124.223.60.234:8181/spartan/ota/sendOtaCommand
2.请求参数
2.1.参数示例
{
"terminalId":"1957EE0C69614AB3B3AF2755103B0AB6",
"type":0,
"mode":0,
"protocol":1,
"version":"natives_blob",
"fileUrl":"http://124.223.60.234:8888/FOTA/103/natives_blob.bin"
}
2.3.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
terminalId | String | 系统终端唯一标识集合 | Y |
type | int | 升级类型: 0: app 升级;1:代码升级(默认0) | Y |
mode | int | 升级模式:0:整包升级;1:差分升级(默认0) | Y |
protocol | int | 升级协议:0:FTP;1:HTTP;(默认1) | Y |
firmware | String | 升级版本号 | Y |
fileUrl | String | 升级包地址,对应的是OTA文件管理中对应的OTA文件连接 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": null
}
3.2.返回结果说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态 |
message | String | 返回结果描述 |
data | object | 返回结果体 |
作者:admin 创建时间:2023-04-26 17:16
最后编辑:admin 更新时间:2024-06-13 09:41
最后编辑:admin 更新时间:2024-06-13 09:41