From 7ba8fb5a36cd6dbabac7a22ff55e5d590f2fd2f4 Mon Sep 17 00:00:00 2001 From: tkl Date: Tue, 9 Jul 2024 15:06:01 +0000 Subject: [PATCH] Change mqtt broker --- sauna.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sauna.go b/sauna.go index 01755bd..eb6ae56 100644 --- a/sauna.go +++ b/sauna.go @@ -81,7 +81,7 @@ func http_endpoint_sauna(w http.ResponseWriter, r *http.Request) { func connect() mqtt.Client { // MQTT connection opts := mqtt.NewClientOptions() - opts.AddBroker("tcp://nuc:1883") + opts.AddBroker("tcp://p5:1883") opts.SetClientID("apiservice/sauna/" + strconv.Itoa(rand.Int())) opts.SetDefaultPublishHandler(messagePubHandler) opts.OnConnect = connectHandler