variable autoReboot

Codec for <AutoReboot>.

Examples

Reboot every Sunday at 04:15

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

const xml = autoReboot.encode({
  enable: 1,
  weekDay: "Sunday",
  hour: 4,
  minute: 15,
  second: 0,
});

assertStringIncludes(xml, "<weekDay>Sunday</weekDay>");

Type

XmlParam<"AutoReboot", AutoReboot>

Usage

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