MicroPython_ESP32_psRAM_LoBo icon indicating copy to clipboard operation
MicroPython_ESP32_psRAM_LoBo copied to clipboard

MQTT client not detecting disconnect

Open erikkj opened this issue 5 years ago • 0 comments

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

erikkj avatar Mar 11 '20 16:03 erikkj