mqtt sleeps before reconnect
This commit is contained in:
parent
e5bcea3ec3
commit
7e06223142
@ -57,6 +57,7 @@ func Setup() {
|
||||
syslog.Err("mqtt connection lost error: " + err.Error())
|
||||
})
|
||||
opts.SetReconnectingHandler(func(c MQTT.Client, options *MQTT.ClientOptions) {
|
||||
time.Sleep(5 * time.Second)
|
||||
syslog.Notice("mqtt reconnecting")
|
||||
})
|
||||
opts.SetOnConnectHandler(func(c MQTT.Client) {
|
||||
|
Loading…
Reference in New Issue
Block a user