mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00010
Re: mosquitto_sub and clean session flag disable
I think, you are referring to retain flag.
When you are connecting with clean session flag, then your subscriptions
are retained. But, if you want the messages in the interim of disconnection
(btw, you would get only the latest message), you need to publish with
retain flag.
So, try the following :
mosquitto_pub -i "7748" -q 1 -t "diag/par01" -m "139" -r
Follow ups
References