cbrx_firmware (update)
Use this method to start firmware updates, some products can have multiple firmware such as display, motor control firmware etc. You can start the update of multiple firmware with a single command as documented in the example.
Syntax: see Call Structure
{ "method": "cbrx_firmware", "params": [ "update", "connection-handle", "firmware-type""filename" ] } |
Parameter | Description |
---|---|
firmware-type | This is a two letter code to define the specific firmware type on the device, more information on the firmware type can be found in the cbrx_firmware section |
filename | Name of the file. A particular firmware file can be used from those available, to obtain available files use cbrx_firmware (list) |
connection-handle | The Connection Handles as an integer |
From version 3.9 onwards with the Cambrionix Hub API you can substitute the connection-handle with the hubs serial number.
Returns:
{ "result": true } |
Errors
If there is an error in the API method then a JSON-error object will be returned.
Example
Example JSON-RPC request:
Copy
{
"jsonrpc": "2.0",
"id": "0",
"method": "cbrx_firmware",
"params": [
"update",
"7654",
{
"un":"CambrionixFirmware-v1.86-un.enfir",
"mc":"CambrionixFirmware-v1.0.0-mc.enfir"
}
]
}
Example successful response:
Copy
{
"jsonrpc": "2.0",
"id": "0",
"result": true
}