Hello HiveMQ Community,
i am currently testing MQTT5 features on “HiveMQ Cloud Free”!
According to the ebook:
Message Expiry Interval
A client can set the message expiry interval in seconds for each PUBLISH message individually. This
interval defines the period of time that the broker stores the PUBLISH message for any matching
subscribers that are not currently connected . When no message expiry interval is set, the broker must
store the message for matching subscribers indefinitely. When the retained=true option is set on the
PUBLISH message, this interval also defines how long a message is retained on a topic.
Publishing-Client:
mqtt.js which publishes just once!!!
PublishOptions: {
qos: 1,
retain: true,
properties: {
responseTopic: requestTopic,
contentType: contentTypeJson,
correlationData: correlationData,
messageExpiryInterval: 60,
}
}
Test Clients:
-MQTTX
-MQTT-Explorer
Somehow i still recv. the published Data even after 60s!?
With “Eclipse Mosquitto” (v2) for example it does not get send to the test clients after reconnect (after 60s)!