• Firmware update:
    • Path: /firmware_update
    • Method:
      • POST: initiates a firmware update
      • GET: returns the status
      • Payload (GET/POST):
        • json object, fields:
          • state: enum string (ready|downloading|installing|error|done) (read-only)
          • message: string, describes the state (read-only)
          • is_update_available: boolean (read-only)
          • latest_version: string or null (read-only)
            • last_error_message: string or null (read-only)
            • local_source: bool (read-write): take firmware update file from /data/update (local source) or download it from the cloud, default: true
    • If the installation was successful, reboots the device.

    • Examples:

    {
        "state":"ready",
        "message":"Ready to receive an update.",
        "last_error":null,
                "is_update_available":true,
                "latest_version":"1.6.5",
                "local_source":true
    }
    {
        "state":"installing",
        "message":"Installing the firmware package.",
        "last_error":null,
        "is_update_available":false,
        "latest_version":"1.6.5"
    }
    {
        "state":"error",
        "message":"Failed updating the firmware: License is not activated.",
        "last_error":"Failed updating the firmware: License is not activated.",
        "is_update_available":false,
        "latest_version":"1.6.5"
    }
    Back to index