Why Your MQTT Dashboard Jumps Backward: Timestamps, Sequence Numbers and Replay
MQTT arrival order is not process order. Why the DUP flag misses the duplicates that hurt, Sparkplug's 8-bit seq wrap, and MQTT 5.0 fixes for stale state.
Articles
Field-oriented references for HMI/SCADA systems, industrial communication, alarms, tags, historians, and project delivery.
MQTT arrival order is not process order. Why the DUP flag misses the duplicates that hurt, Sparkplug's 8-bit seq wrap, and MQTT 5.0 fixes for stale state.
Shared subscriptions split an MQTT stream across workers — and will quietly halve your historian feed and scramble trend order if you point them wrong.
Estimate the real load behind site/# and contain it with MQTT 5.0: Retain Handling, shared subscriptions, Receive Maximum and SUBACK reason codes.
Duplicate client IDs, wildcard ACL rules nobody owns, retained commands that re-fire, and silent denied publishes. What MQTT guarantees at the SCADA edge.
MQTT 5.0 Content Type and User Property, Sparkplug B seq and rebirth, RFC 3339 offsets, and the retained-message trap — versioning edge telemetry payloads so consumers break loudly instead of quietly.
Staged MQTT broker, client and CA certificate rotation: the RFC 5280 SAN and UTCTime rules, the OpenSSL verify codes that name the real fault, MQTT 5.0 session persistence, and Sparkplug 3.0.0 aliases.
Why an MQTT edge gateway loses data during a WAN outage, and how to buffer with source timestamps, sequence numbers and a replay policy that holds.
Clear a stale MQTT retained message with one zero-byte publish, then set QoS, Retain Handling, Session Expiry and Message Expiry on purpose — with MQTT 5.0 clause numbers, property IDs and reason codes.
Using Last Will, birth messages and retained state so a SCADA screen shows offline, stale and healthy as three things — not one green icon that lies.
Laying out Sparkplug B group, edge node and device IDs — plus birth certificates, aliases and STATE — so a rename doesn't break every subscription.
An OPC UA DataValue carries StatusCode, SourceTimestamp and ServerTimestamp with every sample. An MQTT PUBLISH carries a topic and bytes. The comparison that actually holds is OPC UA vs MQTT plus Sparkplug B.