From 691932d28cc94f5f38ced4d43cdfcbfc827262c6 Mon Sep 17 00:00:00 2001 From: CZ Date: Wed, 31 Jul 2024 13:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=B9=B3=E5=8F=B0=E6=96=AD=E5=BC=80?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=A4=84=E6=B7=BB=E5=8A=A0=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E4=BC=91=E7=9C=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Cloud/Client/CloudClient.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Service/Cloud/Client/CloudClient.cs b/Service/Cloud/Client/CloudClient.cs index 0e97896..fce2c52 100644 --- a/Service/Cloud/Client/CloudClient.cs +++ b/Service/Cloud/Client/CloudClient.cs @@ -19,6 +19,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Org.BouncyCastle.Utilities; using Repository.Station; +using Service.Cloud.Common; using Service.Cloud.Handler; using Service.Cloud.Msg; using Service.Cloud.Msg.Cloud.Req; @@ -386,6 +387,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR Connected = false; if (AutoReConnect) { + Thread.Sleep(5000); Connect(); } return Task.CompletedTask;