Codec for <AiCfg>.
Track people and vehicles
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>");