MicroPython_ESP32_psRAM_LoBo
MicroPython_ESP32_psRAM_LoBo copied to clipboard
MQTT client not detecting disconnect
We have an issue where the MQTT client is connected to server and all work fines. But if we stop the server, the client is not detecting that the server i offline. The client continues to send PING messages to server.
Keep alive is set to 30 seconds.
Any ideas?
Snippet from console log:
D (928349) MQTT_CLIENT: msg_type=13, msg_id=0
D (928349) MQTT_CLIENT: MQTT_MSG_TYPE_PINGRESP
D (943366) MQTT_CLIENT: Sent PING successful
D (943388) MQTT_CLIENT: msg_type=13, msg_id=0
D (943388) MQTT_CLIENT: MQTT_MSG_TYPE_PINGRESP
D (959000) MQTT_CLIENT: Sent PING successful
D (974018) MQTT_CLIENT: Sent PING successful
D (989034) MQTT_CLIENT: Sent PING successful
D (1004050) MQTT_CLIENT: Sent PING successful
D (1019066) MQTT_CLIENT: Sent PING successful
D (1034082) MQTT_CLIENT: Sent PING successful