variable dingdongCtrl

Codec for <dingdongCtrl>.

Examples

Read a <dingdongCtrl> element

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

const root = parse("<dingdongCtrl><opt>exit</opt></dingdongCtrl>").root;

assertEquals(dingdongCtrl.decode(root), { opt: "exit" });

Type

XmlParam<"dingdongCtrl", DingdongCtrl>

Usage

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