I’m trying to get the CLI-Tool to display missed messages. I.e. I am doing the following:
mqtt sub -q 2-i 42 -se 1000 --no-cleanStart -t testtopic -h localhost -p 10083
mqtt pub -q 2 -t testtopic -h localhost -p 10083 -m “test”
// then ctrl-c the sub cmd
mqtt pub -q 2 -t testtopic -h localhost -p 10083 -m “test2”
// then start the same sub-cmd again.
What I was expecting is to see the test2-message after restarting the sub-cmd, but the CLI doesn’t display them.
What am I missing? As far as I understood the documentation, QoS 2 and cleanSession=false should imply to receive missed messages.
Did I get the documentation wrong, did I fail to use the CLI correctly or?
Any help appreciated.