Codec for <AutoReboot>.
Reboot every Sunday at 04:15
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>");
XmlParam<"AutoReboot", AutoReboot>