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

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


Back to the top