Re: [Mosquitto-users] mosquitto_sub and clean session flag disable

2012-07-27 Thread Roger Light
Hi Nagesh, > 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.

Re: [Mosquitto-users] mosquitto_sub and clean session flag disable

2012-07-27 Thread Roger Light
Hi Stefano, > 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/#" ... > stefanoco@stefanocopc:~$ mosquitto_pub -i "7748" -q 1 -t "diag/par01" -m ... > Everything ok. Now, ha

Re: [Mosquitto-users] mosquitto_sub and clean session flag disable

2012-07-27 Thread Nagesh S
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-users] mosquitto_sub and clean session flag disable

2012-07-27 Thread stefano costa
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

[Mosquitto-users] mosquitto_sub and clean session flag disable

2012-07-27 Thread stefano costa
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:~$