From 8b2ef457eee47265d182339d94af19448f7de024 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sun, 9 Jul 2023 13:26:10 +0200 Subject: [PATCH] Update BresserWeatherSensorMQTT.ino --- examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino b/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino index 6dbbea7b..ab1d2770 100644 --- a/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino +++ b/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino @@ -662,6 +662,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