Update mqtt broker
Signed-off-by: tkl <tkl@barsch.fritz.box>
This commit is contained in:
parent
18c113be3a
commit
427bc44a3e
2
main.go
2
main.go
@ -47,7 +47,7 @@ func main() {
|
|||||||
|
|
||||||
// MQTT connection
|
// MQTT connection
|
||||||
opts := mqtt.NewClientOptions()
|
opts := mqtt.NewClientOptions()
|
||||||
opts.AddBroker("tcp://nuc:1883")
|
opts.AddBroker("tcp://p5:1883")
|
||||||
opts.SetClientID("saunaservice")
|
opts.SetClientID("saunaservice")
|
||||||
opts.SetDefaultPublishHandler(messagePubHandler)
|
opts.SetDefaultPublishHandler(messagePubHandler)
|
||||||
opts.OnConnect = connectHandler
|
opts.OnConnect = connectHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user