From 0e8fe675192364e4b7cb25a43a1714f2e02bd810 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sun, 9 Jul 2023 13:26:35 +0200 Subject: [PATCH] Update BresserWeatherSensorMQTTCustom.ino --- .../BresserWeatherSensorMQTTCustom.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/BresserWeatherSensorMQTTCustom/BresserWeatherSensorMQTTCustom.ino b/examples/BresserWeatherSensorMQTTCustom/BresserWeatherSensorMQTTCustom.ino index 87437b89..d735fdb8 100644 --- a/examples/BresserWeatherSensorMQTTCustom/BresserWeatherSensorMQTTCustom.ino +++ b/examples/BresserWeatherSensorMQTTCustom/BresserWeatherSensorMQTTCustom.ino @@ -664,6 +664,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