variable trackSchedule

Codec for <trackSchedule>.

Examples

Set a schedule

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

const xml = trackSchedule.encode({ channelId: 0, timeTable: "0".repeat(168) });

assertStringIncludes(xml, "<channelId>0</channelId>");

Type

XmlParam<"trackSchedule", TrackSchedule>

Usage

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