diff --git a/sonoff/xdrv_01_mqtt.ino b/sonoff/xdrv_01_mqtt.ino index e91e56f16..3860b96a8 100644 --- a/sonoff/xdrv_01_mqtt.ino +++ b/sonoff/xdrv_01_mqtt.ino @@ -109,7 +109,8 @@ TasmotaMqtt MqttClient; bool MqttIsConnected() { - return mqtt_connected; + //return mqtt_connected; + return MqttClient.Connected(); } void MqttDisconnect()