variable upgradeState

Codec for <upgradeState>.

Examples

Build a <upgradeState> element

import { assertStringIncludes } from "@std/assert";
import { upgradeState } from "@hertzg/reolink-api/protocol/params";

const xml = upgradeState.encode({
  downloadSize: 16777216,
  packetSize: 16777216,
  state: "finish",
});

assertStringIncludes(xml, "<state>finish</state>");

Type

XmlParam<"upgradeState", UpgradeState>

Usage

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