variable dayNightMode

Codec for <DayNightMode>.

Examples

Build a <DayNightMode> element

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

const xml = dayNightMode.encode({ mode: "blackAndWhite" });

assertStringIncludes(xml, "<mode>blackAndWhite</mode>");

Type

XmlParam<"DayNightMode", DayNightMode>

Usage

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