This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT-SN gateway reconnection

Hello,

I'm using SDK for Thread v.4.1.0 along with nRF52840 microcontroller. Starting from MQTT-SN examples I developed a Thread network with multiple nodes, publishing data on different topics.
I have some concerns about management of reconnection to MQTT-SN gateway.

The procedure I follow at initialization is: Gateway Search, Connection to gateway, topic registration, topic subscription. I basically replicate what is done in the two MQTT-SN examples in SDK.

My question: while reconnecting, following a disconnection from the gateway, do I need to register and subscribe all topics again? I know MQTT-SN allows to receive at connection a message with all topics previously registered and subscribed. I wonder if this version of SDK has implemented this feature.

Thanks!

Related