Run sheet · MQTT Session Management · 35 min
| Time | Teacher does | Learners do | Link |
|---|---|---|---|
| 0–5 min | Show the session state diagram | State what keep-alive measures | Chapter |
| 5–15 min | Show what a persistent session keeps while a device sleeps | Decide between a clean and a persistent session for a sleeping device | Chapter |
| 15–26 min | Walk through keep-alive and how the broker notices a silent client | Predict how long a silent client stays connected | Chapter |
| 26–35 min | Ask what the broker still holds after a disconnect | Choose a session type and a queue limit for a battery device | Chapter |
If the lab fails: Use the chapter's session state tables to trace a sleep and reconnect on paper. Camera off: Collect each pair's session choice and the reason in writing.
Next move: If many learners reuse one client ID everywhere, revisit what the broker keys a session on.