Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] libmosquitto: subscription lost after reconnect

Thanks Karl and Roger for the quick reply!
It works now!
Cheers,
Chris
 
Gesendet: Montag, 06. Juni 2016 um 17:54 Uhr
Von: "Roger Light" <roger@xxxxxxxxxx>
An: "General development discussions for the mosquitto project" <mosquitto-dev@xxxxxxxxxxx>
Betreff: Re: [mosquitto-dev] libmosquitto: subscription lost after reconnect
Hi Chris,

> Do I have to re-subscribe all my topics after a broker disconnect?

Unless you have set clean_session=0, then yes you do. The easiest way
to do this is by subscribing in the on_connect callback.

Cheers,

Roger
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top