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.
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
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
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
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:~$
5 matches
Mail list logo