mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00008
mosquitto_sub and clean session flag disable
Hello,
I know I'm missing something. I'm trying to use the "no clean session"
feature:
On one terminal:
stefanoco@stefanocopc:~$ mosquitto_sub -c -i "6748" -v -t "diag/#"
diag/pippo 139
diag/pippo 140
diag/pippo 141
On another terminal right after the sub command:
stefanoco@stefanocopc:~$ mosquitto_pub -i "7748" -q 1 -t "diag/par01" -m
"139"
stefanoco@stefanocopc:~$ mosquitto_pub -i "7748" -q 1 -t "diag/par01" -m
"140"
stefanoco@stefanocopc:~$ mosquitto_pub -i "7748" -q 1 -t "diag/par01" -m
"141"
Everything ok. Now, having used the "-c" flag in sub, I expect that if I
kill mosquitto_sub, then publish more messages with above lines, and the
launch again mosquitto_sub I get the messages in queue. I'm getting
nothing... is there anything I should look after in mosquitto.conf?
By the way: using the same id for pub/sub causes sub to exit suddenly (I
know I shouldn't but this is not an intended behaviour I guess?)
Thanks a lot S
--
Stefano Costa, R&D Manager
M +39 335 6565749
Skype stefanocosta.bluewind
http://www.bluewind.it/stefanoco?code=7
Follow ups