mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00009
mosquitto_sub and clean session flag disable
Sorry the previous message contains wrong topics... this is correct
_________
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/par01 139
diag/par01 140
diag/par01 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