variable trackLimit

Codec for <trackLimit>.

Examples

Set the tracking limits

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

const xml = trackLimit.encode({ channelId: 0, leftLimit: 0, rightLimit: 1800 });

assertStringIncludes(xml, "<rightLimit>1800</rightLimit>");

Type

XmlParam<"trackLimit", TrackLimit>

Usage

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