When does an MQTT subscription end?
When does an MQTT subscription end?
Try Press Step to register the exact filter for sensors/temperature/room1 and look for the broker’s reply to the subscriber.
Session persistence
MQTT 5.0
Live publications
Observe The broker session card gains the sensors/temperature/room1 filter. The next scene shows a matching copy reaching the subscriber while the different topic ends at No delivery to this subscriber.
Explain In MQTT 5.0, the nonzero Session Expiry Interval shown lets the broker retain the filter after disconnect. The same client reconnects before expiry with Clean Start set to 0, so the resumed filter matches a fresh publication.
Technical boundaries. The MQTT example follows one exact topic filter and fresh live publications. The resumed path assumes the same Client ID and a reconnect before session expiry. The disconnect scene shows the saved registration and leaves delivery of messages published during the offline period outside the replay.