If you could share your paho code, people might know more, it's very hard to 
understand what you're doing I'm
sorry.

What I _think_ is happening, is that while you are publishing with qos2, you 
might not have
clean_session=False, or you might not have stable/persistent client ids.  In 
that case, paho might reconnect,
but it won't resubscribe.  (If paho even reconnects)


On Wed, Dec 11, 2013 at 10:10:49AM +0800, 灰(Grey)狼 wrote:
> thanks . even though i pub a new message , my paho client also can't sub any 
> messages , so i think this problem has nothing with retained flag.
>   
> 
>  
> 
>  ------------------ Original ------------------
>   From:  "Jan-Piet Mens";<jpm...@gmail.com>;
>  Date:  Tue, Dec 10, 2013 07:40 PM
>  To:  "mosquitto-users"<mosquitto-users@lists.launchpad.net>; 
>  
>  Subject:  Re: [Mosquitto-users] 回复: I met a strange question
> 
>  
> 
> Hello,
> 
> >         1.delete mosquitto.db then restart mosquitto 
> >         2. pub a qos 2 message without sub 
> >         3. restart subscriber and cannot receive message any more.
> 
> If you intend to be able to get messages previously published to the
> broker (i.e. retained *by* the broker), you have to set the `retain'
> flag on messages as you publish them. With the command-line tools, you'd
> do something like this:
> 
>         mosquitto_pub -t topic -m payload -r
> 
> A subsequent SUB on that topic (provided ACLs allow you to do so) will
> read that last retained message for that particular topic.
> 
>         -JP
> 
> -- 
> 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
> .

> -- 
> 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


-- 
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