Browse Source

update 更新数据处理

dev
lucas 3 days ago
parent
commit
dae28c7ba8
  1. 3
      dbOperate/mqttHelper.go

3
dbOperate/mqttHelper.go

@ -43,8 +43,7 @@ reConn:
opts.SetUsername(the.UserName)
opts.SetPassword(the.Password)
opts.SetClientID(the.ClientId)
opts.SetCleanSession(false) // 通常需要关闭 CleanSession
opts.SetResumeSubs(true) // 启用 ResumeSubs
opts.SetCleanSession(true) // 通常需要关闭 CleanSession
opts.SetOnConnectHandler(the.reConn2Subscribe)
opts.SetMaxReconnectInterval(10 * time.Second)
if sslEnable {

Loading…
Cancel
Save