下载
中文
注册

固件生效

当前均通过复位系统生效固件。

消息实例

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "EdgeManager",
        "group": "hardware",
        "operation": "update",
        "resource": "websocket/firmware_effective"
    },
    "content": {
    }
}

参数说明

content消息内容描述如下:

{
    "active": "inband"
}

元素定义如下:

一级资源

描述

类型

取值范围

active

生效方式

string

当前仅支持inband。具体需要通过可升级固件列表确认。

对于生效系统是否成功,可以通过系统上报的静态信息里的可升级固件列表确认。

返回结果

{
    "header":{
        "msg_id":"9791bbb6-1d96-4e82-82cf-8e4a3a92ad5d",
        "parent_msg_id": "",
        "timestamp":1652280713614,
        "sync": false
    },
    "route":{
        "source":"hardware",
        "group":"hub",
        "operation":"update",
        "resource":"websocket/restart_result"
    },
    "content":"{"restartable": "true", "reason": "effective firmware now"}"
}