From 5117cc25199c5f5d15613e67626b9c949f938277 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 7 Feb 2022 13:36:11 +0100 Subject: [PATCH] Fix: Set client id Signed-off-by: Knut Ahlers --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 2effd49..a8af8af 100644 --- a/main.go +++ b/main.go @@ -67,6 +67,7 @@ func main() { client := mqtt.NewClient( mqtt.NewClientOptions(). AddBroker(cfg.MQTTBroker). + SetClientID(cfg.MQTTClientID). SetUsername(cfg.MQTTUser). SetPassword(cfg.MQTTPass), )