variable agingTest

Codec for <AgingTest>.

Examples

Read an <AgingTest> element

import { assertEquals } from "@std/assert";
import { parse } from "@std/xml";
import { agingTest } from "@hertzg/reolink-api/protocol/params";

const root = parse(
  '<AgingTest version="1.1"><channelId>0</channelId><enable>1</enable>' +
    "<fileName>aging.bin</fileName><size>4096</size></AgingTest>",
).root;

assertEquals(agingTest.decode(root).fileName, "aging.bin");

Type

XmlParam<"AgingTest", AgingTest>

Usage

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