variable ddns

Codec for <Ddns>.

Examples

Build a <Ddns> element for cmd 41

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

const xml = ddns.encode({ enable: 1, ddnsType: "dyndns" });

assertStringIncludes(xml, "<ddnsType>dyndns</ddnsType>");

Type

XmlParam<"Ddns", Ddns>

Usage

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