1.URL

xxxxxxxxxxxxxxx/system/asset/command/sendOtaCommand
其中xxxxxxxxxxxxxxx为节点URL(详情参考:对接说明中4.服务器节点说明)
(上海节点)http://124.223.60.234:8080/system/asset/command/sendOtaCommand
(美国节点)https://cloud.aovx.com/prod/system/asset/command/sendOtaCommand

2.请求参数

2.1请求头

在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId

2.2.参数示例

{
    "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.参数说明

字段 类型 说明 是否必须
terminalIds List 系统终端唯一标识集合 Y
type int 升级类型: 0: app 升级;1:代码升级 Y
mode int 升级模式:0:整包升级;1:差分升级 Y
protocol int 升级协议:0:FTP;1:HTTP;界面默认1:HTTP协议 Y
version int 升级版本号,选择升级文件时,默认是升级文件的名称,不含后缀 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-24 16:52
最后编辑:admin  更新时间:2025-04-26 15:43