We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f17db commit 61ffe78Copy full SHA for 61ffe78
cmd/hc-motion-sensor/main.go
@@ -25,6 +25,7 @@ func connect(clientID string, uri *url.URL) (mqtt.Client, error) {
25
password, _ := uri.User.Password()
26
opts.SetPassword(password)
27
opts.SetClientID(clientID)
28
+ opts.SetCleanSession(false)
29
30
var client = mqtt.NewClient(opts)
31
var token = client.Connect()
0 commit comments