Fixed MQTT Reconnection Bug

If you restart your wifi router, and you have Tasmota_MQTT Library with wificonfig 5, Tasmota don't realize of this MQTT disconnection.
This commit is contained in:
Adrian Scillato 2018-08-22 23:19:56 -03:00 committed by GitHub
parent fd06097095
commit 4325d51824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ TasmotaMqtt MqttClient;
bool MqttIsConnected()
{
return mqtt_connected;
//return mqtt_connected;
return MqttClient.Connected();
}
void MqttDisconnect()