MQTT disconnection
Posted: Mon Jan 22, 2018 7:38 am
Hello Community
We are working on an Andon project using the MQTT protocol (MQTTClient.h).
The ESP32 works as a client and the server is set on a company intern network. However, the WiFi connection is established and stable.
But the client gets disconnected from the Server. We solved it, that we check in the loop if it still is connected to the MQTT broker. If not, a new connection will be established.
We know the solution is not ideal, but it works for small number for disconnection. But in our case there are too much disconnections.
How can we solve this? May it be possible, that the MQTT broker has some issues?
Cheers
We are working on an Andon project using the MQTT protocol (MQTTClient.h).
The ESP32 works as a client and the server is set on a company intern network. However, the WiFi connection is established and stable.
But the client gets disconnected from the Server. We solved it, that we check in the loop if it still is connected to the MQTT broker. If not, a new connection will be established.
We know the solution is not ideal, but it works for small number for disconnection. But in our case there are too much disconnections.
How can we solve this? May it be possible, that the MQTT broker has some issues?
Cheers