hubsoftware.update.plan
Hub type:
Connection type:
Permissions:
Connection type:
Permissions:
- Get actions for executing specified software update operation: firmware upgrade, addon install, plugin uninstall, etc…
Edit
Field | Type | Required | Description |
---|---|---|---|
operation | enum | + | , , , |
source | string | – | Web server where to download requested , , or . If not specified, hub will update from provisioned source, or source of last successful update) |
snapshot | int | – | Bundle snapshot to use. If not specified, hub will use provisioned snapshot, or snapshot of last successful update). For development purpose you can pass to use latest bundle snapshot |
type | enum | + | , , |
id | string | – | If type is or , then id (name) of extension |
version | string | – | Version of referenced software. There may be only one version in snapshot, so it is just for reference. Can be safely omitted. |
- Firmware version description: OpenWRT based device FreeRTOS based device
Edit
Edit
Code | Message | Data |
---|---|---|
-32602 | Wrong params | rpc.params.invalid |
-32500 | User does not have permission | user.permission.doesnothave |
Edit
Broadcast | Description |
---|---|
hub.software.update.actions | Actions for executing specified software update operation |
Edit
Edit
Get actions for sysupgrading firmware to latest available version
Edit
{
"method": "hub.software.update.plan",
"id": "_ID_",
"params": {
"operation": "sysupgrade",
"type": "firmware",
"snapshot": -1
}
}
Edit
{
"error": null,
"id": "_ID_",
"result": {}
}
Edit
Get actions for update firmware to latest version on DEV environment
Edit
{
"method": "hub.software.update.plan",
"id": "_ID_",
"params": {
"operation": "sysupgrade",
"type": "firmware",
"source": "http://dl.mios.com/linux_firmware/dev",
"snapshot": -1
}
}
Edit
{
"error": null,
"id": "_ID_",
"result": {}
}
Edit
Edit
Get actions for installing current (not latest) version of zigbee addon
Edit
{
"method": "hub.software.update.plan",
"id": "_ID_",
"params": {
"operation": "install",
"type": "addon",
"id": "zigbee"
}
}
Edit
{
"error": null,
"id": "_ID_",
"result": {}
}
Edit
Get actions for uninstalling zwave plugin
Edit
{
"method": "hub.software.update.plan",
"id": "_ID_",
"params": {
"operation": "uninstall",
"type": "plugin",
"id": "zwave"
}
}
Edit
{
"error": null,
"id": "_ID_",
"result": {}
}