Skip to content

eufy-mega / core/contracts / DpInboundFrame

Interface: DpInboundFrame

A decoded inbound "DP" TLV frame — the transport's parse of a device→app message, handed to the capability layer so it can attribute MEANING to the tags without knowing the framing.

The split follows the outbound direction, mirrored: a capability supplies opaque cmdCode + tagged fields and the transport frames them; inbound, the transport unwraps the envelope and validates the frame, and the capability decides what each tag means. Neither side needs the other's half — which is the whole reason this type sits on the shared floor rather than in either layer.

Properties

cmd

ts
cmd: number;

The frame command (cmdHi/cmdLo), likewise forwarded without interpretation.


envelopeCmd

ts
envelopeCmd: number;

The envelope's dispatch id (head.cmd) — capability-owned vocabulary, forwarded verbatim.


fields

ts
fields: readonly object[];

The frame's TLV run, in wire order.


status?

ts
optional status?: number;

The status byte a response frame carries ahead of its TLVs; absent on an unsolicited report.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations or eufy. "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.