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


--
Mailing list: https://launchpad.net/~mosquitto-users
Post to     : mosquitto-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mosquitto-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to