From 620b79203348e7450ecf5c8bf7ea45631747f682 Mon Sep 17 00:00:00 2001 From: Dustin Brunner Date: Mon, 22 Mar 2021 08:44:02 +0100 Subject: [PATCH] Fix Error after reconnect --- Weatherdisplay_Nokia_5110/mqtt_callback.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Weatherdisplay_Nokia_5110/mqtt_callback.ino b/Weatherdisplay_Nokia_5110/mqtt_callback.ino index 37cdea6..0854dd3 100644 --- a/Weatherdisplay_Nokia_5110/mqtt_callback.ino +++ b/Weatherdisplay_Nokia_5110/mqtt_callback.ino @@ -32,7 +32,10 @@ void reconnect() while (!client.connected()) { if (client.connect("WetterDisplay", mqtt_user, mqtt_pass)) + { client.subscribe("wetter_display/set"); + updatedisplay(); + } else { display_error("MQTT Error");