variable ftpTask

Codec for <FtpTask>.

Examples

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>");

Type

XmlParam<"FtpTask", FtpTask>

Usage

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