Firmware Upgrade
This interface is used to asynchronously return the upgrade progress and result.
Message instance
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "EdgeManager",
"group": "hardware",
"operation": "update",
"resource": "websocket/install"
},
"content": {
}
}
Parameter description
The content message is described as follows:
{
"member_list": [{
"operator": "install",
"type": "firmware",
"install_method": "force | normal",
"enable_method": "now | delay",
"name": "firmware",
"https_server": {
"image": "GET https://FDAddr:port/fw.zip",
"user_name": "userName",
"password": "password"
},
"check_type": "sha256",
"check_code": "xxxxxxxxxxxxx"
}]
}
Elements are defined as follows:
Result returned
{
"header":{
"msg_id":"e1d7ec35-ceac-4648-a581-056f5690d8f9",
"parent_msg_id": "",
"timestamp":1652279813323,
"sync": false
},
"route":{
"source":"hardware",
"group":"hub",
"operation":"update",
"resource":"websocket/upgrade_progress"
},
"content":"{"members": [{"operator": "install", "name": "firmware", "version": "NA", "percentage": "100", "result": "success", "reason": ""}]}"
}
Parent topic: Downstream Message Interfaces