From 7e06b58522c1b9ff51e557323ab3633ec8cfbabb Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 15 Jan 2023 05:50:46 +0000 Subject: [PATCH] Update 'main.go' --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 9abac3f..f8ea04e 100644 --- a/main.go +++ b/main.go @@ -118,6 +118,7 @@ func setupMQTT() *mqtt.ClientOptions { opts.SetUsername(os.Getenv("MQTTUSER")) opts.SetPassword(os.Getenv("MQTTPASSWORD")) opts.SetClientID("rgbboard") + opts.SetAutoReconnect(true) return opts }