Codec for <FtpTask>.
Upload on motion every hour of the week
Upload on motion every hour of the week
import { assertStringIncludes } from "@std/assert"; import { ftpTask } from "@hertzg/reolink-api/protocol/params"; const xml = ftpTask.encode({ channelId: 0, enable: 1, typeScheduleList: [{ type: "MD", valueTable: "1".repeat(168) }], }); assertStringIncludes(xml, "<typeScheduleList><item><type>MD</type>");