MQTT re-connect issue (#2256)

Fix to start sending PINGREQ after a reconnect.
This commit is contained in:
Frank Exoo 2018-02-09 08:13:24 +01:00 committed by Marcel Stör
parent 2a944026c5
commit ba36cb3d2d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}