Preserve measurements through MQTT outages
Study Preserve measurements through MQTT outages. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.
Learning Objectives
- Explain the role of messaging, timestamps and delivery in the engineering system.
- Calculate the worked quantity with consistent units.
- Design a measurement that can reveal an implementation failure.
Study guide
Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.
Lesson focus: Preserve measurements through MQTT outages
Define the input, measured output, units and pass/fail condition before running the experiment.
Messaging, timestamps and delivery
An MQTT topic names a data stream. Delivery quality does not guarantee that the payload is fresh, correctly scaled or safe to use as an actuator command. Include a device identity, timestamp or sequence, units and validity information.
Model, units and assumptions
fs is messages per second, B is payload bytes per message, Toutage is the outage to buffer, and Nbuffer is required message capacity. Protocol and network overhead must be added to the payload rate.
Worked engineering example
At 5 Hz and 120 payload bytes, one sensor produces 600 B/s before overhead. Buffering a 60 s outage requires at least 300 records; allocate additional capacity for metadata and retries.
Practical task and evidence
Apply the following procedure to the topic of this lesson: Preserve measurements through MQTT outages.
- Publish a sample with value, unit, monotonic sequence and acquisition timestamp.
- Interrupt the broker connection and check reconnect/backoff and buffer limits.
- Prevent retained command messages from unexpectedly restarting an actuator.
Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.
Check your understanding
Question. At 2 Hz for a 15-minute outage, how many records need storage?
Show worked answer
1,800 records, before adding any safety margin.
Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.
Summary
Messaging, timestamps and delivery: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.