Fix Error after reconnect

This commit is contained in:
Dustin Brunner 2021-03-22 08:44:02 +01:00
parent 0dc1fa6562
commit 620b792033
1 changed files with 3 additions and 0 deletions

View File

@ -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");