variable bindNasInfoList

Codec for <BindNasInfoList>.

Examples

Build a list with one NAS

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

const xml = bindNasInfoList.encode({
  info: [{ devName: "Basement NAS", uid: "95270000ABCDEF12" }],
});

assertStringIncludes(xml, "<info><devName>Basement NAS</devName>");

Type

XmlParam<"BindNasInfoList", BindNasInfoList>

Usage

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