cbrx_firmware (add)

Adds the firmware file to the API local storage on the host running the API. Adding firmware files is done by providing a Base64 encoded zip of the file. For more information on Base64 encoding please see the following link.

Syntax: see Call Structure

{

"method": "cbrx_firmware",

"params": [

"add",

"filename", encoded-Bytes

]

}

Parameters Description
filename The name of the firmware file
encoded-Bytes The encoded zip of the file in Base64
Returns:

{

"result": true

}

Examples

Example JSON-RPC request: (note in this example the base64 encoded text has been reduced for simplification and clarity within the manual)

Copy
{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "cbrx_firmware",
  "params": [
    "add",
    "CambrionixFirmware-v1.87-un.enfir",
    "eJwsnduOLTFSbd9Lqn/8f8BywVzYg=="
  ]
}

Example successful response:

Copy
{
  "jsonrpc": "2.0",
  "id": 0,
  "result": true
}