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
cmd: number;The frame command (cmdHi/cmdLo), likewise forwarded without interpretation.
envelopeCmd
envelopeCmd: number;The envelope's dispatch id (head.cmd) — capability-owned vocabulary, forwarded verbatim.
fields
fields: readonly object[];The frame's TLV run, in wire order.
status?
optional status?: number;The status byte a response frame carries ahead of its TLVs; absent on an unsolicited report.