mirror of
https://github.com/dustinbrun/MQTT-Weather-display
synced 2025-08-26 04:40:27 +02:00
Fix Error after reconnect
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user