From c226fa4fa70f008b089ce4a028210be88c96b23f Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 15 Jan 2023 04:12:33 +0000 Subject: [PATCH] setting client ID --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index b50d1e1..da8da14 100644 --- a/main.go +++ b/main.go @@ -116,6 +116,7 @@ func setupMQTT() *mqtt.ClientOptions { opts.AddBroker(fmt.Sprintf("tcp://%s:%s", os.Getenv("MQTTBROKER"), os.Getenv("MQTTPORT"))) opts.SetUsername(os.Getenv("MQTTUSER")) opts.SetPassword(os.Getenv("MQTTPASS")) + opts.SetClientID("rgbboard") return opts }