variable blc

Codec for <BLC>.

Examples

Build a <BLC> element

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

const xml = blc.encode({ enable: 1, BLCMode: "backLight", level: 64 });

assertStringIncludes(xml, "<BLCMode>backLight</BLCMode>");

Type

XmlParam<"BLC", Blc>

Usage

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