From c2e6e14e8e68aca4f78f0fea028fc92ce15d3656 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 21 五月 2020 10:51:21 +0800
Subject: [PATCH] 请合并最新代码,调整了门锁推送功能

---
 ZigbeeApp20200519/Shared/Phone/ZigBee/Device/ZbGateway.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp20200519/Shared/Phone/ZigBee/Device/ZbGateway.cs b/ZigbeeApp20200519/Shared/Phone/ZigBee/Device/ZbGateway.cs
old mode 100755
new mode 100644
index f8b36df..01c654c
--- a/ZigbeeApp20200519/Shared/Phone/ZigBee/Device/ZbGateway.cs
+++ b/ZigbeeApp20200519/Shared/Phone/ZigBee/Device/ZbGateway.cs
@@ -2758,8 +2758,8 @@
            .WithTcpServer(domain, int.Parse(port))
            .WithCredentials(connEmqUserName, connEmqPwd)
            .WithKeepAlivePeriod(TimeSpan.FromSeconds(20))
-           .WithCleanSession()
-           //.WithCommunicationTimeout(TimeSpan.FromSeconds(10))
+           .WithCleanSession()
+           //.WithCommunicationTimeout(TimeSpan.FromSeconds(10))
            .Build();
                                 await DisConnectRemoteMqttClient("StartRemoteMqtt");
                                 await RemoteMqttClient.ConnectAsync(options, CancellationToken.None);
@@ -3230,6 +3230,7 @@
                     UpdateDeviceInfo(tempDevice, "DeviceStatusReport");
                 }
                 #endregion
+
                 #region 闂ㄩ攣鎿嶄綔浜嬩欢閫氱煡
                 else if (topic == gatewayID + "/" + "DoorLock/DoorLockOperatingEventNotificationCommand")
                 {
@@ -3253,6 +3254,7 @@
                     }
                 }
                 #endregion
+
                 #region 闂ㄩ攣缂栫▼浜嬩欢閫氱煡
                 else if (topic == gatewayID + "/" + "DoorLock/DoorLockProgrammingEventNotificationCommand")
                 {

--
Gitblit v1.8.0