Mqtt Message Expire interval

How do Session Expiry Interval and Message Expiry Interval in MQTT 5 versus Mqtt 3.1 ?

Hi Rahul,

MQTTv3 (3.1 or 3.1.1) does not support a message expiry of any kind via the protocol features.
Some MQTT brokers, like HiveMQ, allow you to use some features of MQTTv5 even with MQTTv3 clients. This is also true for the Message and Session Expiry.

We have a great article on this:: Session and Message Expiry Intervals - MQTT 5 Essentials Part 4

If the article is unclear or does not answer all questions, please feel free to ask follow up questions.

Kind regards,
Dasha from HiveMQ team