type alias UpgradeState

The online update progress in <upgradeState>.

Properties

optional
downloadSize: number

Bytes downloaded so far.

optional
packetSize: number

Size of the firmware package in bytes.

optional
state:
"none"
| "stopped"
| "downloading"
| "updating"
| "timeout"
| "finish"
| "imgerror"

Update state; none is written only, updating is read only.

Usage

import { type UpgradeState } from "protocol/params/mod.ts";