variable osdChannelName

Codec for <OsdChannelName>.

Examples

Build an <OsdChannelName> element for cmd 45

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

const xml = osdChannelName.encode({ channelId: 0, name: "Garage" });

assertStringIncludes(xml, "<name>Garage</name>");

Type

XmlParam<"OsdChannelName", OsdChannelName>

Usage

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