From 527f89d86cfe04739fe2a451398f3c42e4bd0ad0 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 15 Jan 2023 04:34:38 +0000 Subject: [PATCH] god bless --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 66a107d..5622487 100644 --- a/main.go +++ b/main.go @@ -115,9 +115,7 @@ func setupMQTT() *mqtt.ClientOptions { opts := MQTT.NewClientOptions() opts.AddBroker(fmt.Sprintf("tcp://%s:%s", os.Getenv("MQTTBROKER"), os.Getenv("MQTTPORT"))) opts.SetUsername(os.Getenv("MQTTUSER")) - opts.SetPassword(os.Getenv("MQTTPASS")) - log.Println(os.Getenv("MQTTPASS")) - log.Println(os.Getenv("MQTTUSER")) + opts.SetPassword(os.Getenv("MQTTPASSWORD")) opts.SetClientID("rgbboard") return opts