From 2edc1e0c182b75417a810bc6a08b3e7092d32098 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sun, 9 Jul 2023 13:26:59 +0200 Subject: [PATCH] Update BresserWeatherSensorMQTTWifiMgr.ino --- .../BresserWeatherSensorMQTTWifiMgr.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/BresserWeatherSensorMQTTWifiMgr/BresserWeatherSensorMQTTWifiMgr.ino b/examples/BresserWeatherSensorMQTTWifiMgr/BresserWeatherSensorMQTTWifiMgr.ino index c945ee11..61813130 100644 --- a/examples/BresserWeatherSensorMQTTWifiMgr/BresserWeatherSensorMQTTWifiMgr.ino +++ b/examples/BresserWeatherSensorMQTTWifiMgr/BresserWeatherSensorMQTTWifiMgr.ino @@ -841,6 +841,7 @@ void loop() { Serial.printf("%s: %s\n", mqttPubStatus, "offline"); Serial.flush(); client.publish(mqttPubStatus, "offline", true /* retained */, 0 /* qos */); + client.loop(); client.disconnect(); client.loop(); #ifdef LED_EN