MQTT connection lost | Telit Cinterion IoT Developer Community
December 23, 2021 - 6:46am, 807 views
How can I see that the connection to the MQTT has been lost?
For example, I have my module connected with a Mosquitto, it works fine.
Then, I shut down the Mosquitto, and I do not see anything in the module informing me that the connection was lost.
I am using qapi for MQTT connection management.
Hello,
Do you try to send something to the broker after you shut it down? What happens then?
Regards,
Bartłomiej
The issue was at the code.
Now it is working fine. When the MQTT Broker closes, then the callback that handles the module's connection is called, and proper handling is done.