MQTT disconnects after few hrs GSM

am publishing data and subscribing via MQTT server with help of EG25 module.I haven’t used any external libraries in code, it runs only AT Commands.Everthing works fine for fews hrs after that it disconnects from mqtt server. I even checked my MQTT server side but it has not problem.How to reconnect to mqtt sever when its get disconnected?

Setup:

Atmega 2560
EG25-G
Baud rate - 115200

The manual says that you should reopen the connection using the AT command that opens a connection.

Can you share any article or example regarding this?

Show the code you have written.
My guess is that the code needed to reconnect will be the same.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.