Skip to content

Commit

Permalink
fix MQTT password
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrossbach committed Jul 31, 2024
1 parent 92fcf62 commit 3dcec82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/noah-mqtt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func connectMqtt(mqttCfg config.Mqtt, onConnected func(client mqtt.Client)) {
AddBroker(fmt.Sprintf("tcp://%s:%d", mqttCfg.Host, mqttCfg.Port)).
SetClientID(mqttCfg.ClientId).
SetUsername(mqttCfg.Username).
SetUsername(mqttCfg.Password)
SetPassword(mqttCfg.Password)

opts.OnConnect = func(client mqtt.Client) {
slog.Info("connected to mqtt broker")
Expand Down

0 comments on commit 3dcec82

Please sign in to comment.