variable aiCfg

Codec for <AiCfg>.

Examples

Track people and vehicles

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

const xml = aiCfg.encode({
  channelId: 0,
  smartTrack: 1,
  smartTrackType: "people,vehicle",
});

assertStringIncludes(xml, "<smartTrackType>people,vehicle</smartTrackType>");

Type

XmlParam<"AiCfg", AiCfg>

Usage

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