MQTT re-connect issue (#2256)
Fix to start sending PINGREQ after a reconnect.
This commit is contained in:
parent
2a944026c5
commit
ba36cb3d2d
|
@ -337,6 +337,7 @@ READPACKET:
|
|||
} else {
|
||||
mud->connState = MQTT_DATA;
|
||||
NODE_DBG("MQTT: Connected\r\n");
|
||||
mud->keepalive_sent = 0;
|
||||
if (mud->mqtt_state.auto_reconnect == RECONNECT_POSSIBLE) {
|
||||
mud->mqtt_state.auto_reconnect = RECONNECT_ON;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue