variable systemGeneral

Codec for <SystemGeneral>.

Examples

Rename the device

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

assertEquals(
  systemGeneral.encode({ deviceName: "Back yard" }),
  '<SystemGeneral version="1.1"><deviceName>Back yard</deviceName></SystemGeneral>',
);

Type

XmlParam<"SystemGeneral", SystemGeneral>

Usage

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