Skip to content

Commit

Permalink
mqtt: fix will message so it's sent
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Mar 10, 2024
1 parent be92ba4 commit a64ce02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqttcm/mqttcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func Setup(ctx context.Context, name, statusChannel string, subscribe []string,
})
}

if len(statusChannel) < 0 {
if len(statusChannel) > 0 {
mqttcfg.WillMessage = willMessage
mqttcfg.WillProperties = &paho.WillProperties{
WillDelayInterval: paho.Uint32(30),
Expand Down

0 comments on commit a64ce02

Please # to comment.