Codec for <Email>.
Build an <Email> element for cmd 43
Build an <Email> element for cmd 43
import { assertStringIncludes } from "@std/assert"; import { email } from "@hertzg/reolink-api/protocol/params"; const xml = email.encode({ smtpServer: "smtp.example.com", smtpPort: 587, address1: "alerts@example.com", textType: "withText", }); assertStringIncludes(xml, "<textType>withText</textType>");