increase timeout
This commit is contained in:
+2
-2
@@ -111,9 +111,9 @@ func (c *TuyaMqttClient) Start(hubConfig *MQTTConfig, webrtcConfig *WebRTCConfig
|
|||||||
SetOnConnectHandler(c.onConnect).
|
SetOnConnectHandler(c.onConnect).
|
||||||
SetAutoReconnect(true).
|
SetAutoReconnect(true).
|
||||||
SetMaxReconnectInterval(30 * time.Second).
|
SetMaxReconnectInterval(30 * time.Second).
|
||||||
SetConnectTimeout(15 * time.Second).
|
SetConnectTimeout(30 * time.Second).
|
||||||
SetKeepAlive(30 * time.Second).
|
SetKeepAlive(30 * time.Second).
|
||||||
SetPingTimeout(15 * time.Second)
|
SetPingTimeout(20 * time.Second)
|
||||||
|
|
||||||
c.client = mqtt.NewClient(opts)
|
c.client = mqtt.NewClient(opts)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user