From 22c5c030f2262b6a9d6840bf3b5196b7ab2d4dd5 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 10 三月 2020 14:31:53 +0800
Subject: [PATCH] 2020-03-10  1.替换最新控件库,增加无网络监听,Loading效果优化。 2.电能插座修复点亮统计个数问题。 3 .定时检测网关是否在线,发送CheckGateway间隔为10S,收到主题刷新该时间,重置发送次数,发送次数到达3次以上,则判定网关为离线状态。 4.远程重复增加为3次,重发后等待5s才回调结果。 5.修复去掉普通继电器读电能操作。 6.读状态间隔缩短为200ms。

---
 Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs
index 0d5a06e..601ab84 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs
@@ -279,7 +279,14 @@
                                     hadBeUpdate = false;
                                 (common as LightDimming).CurrentBrightness = usefullBytes [2];
                             } else if (common.Type == DeviceType.FanModule) {
+                                //if ((common as FanModule).Switch == usefullBytes [2]) {
+                                //    hadBeUpdate = false;
+                                //}
                                 (common as FanModule).Switch = usefullBytes [2];
+                                if (usefullBytes [2] != 0)
+                                    (common as FanModule).WindSpeed = usefullBytes [2];
+
+                                //(common as FanModule).Switch = usefullBytes [2];
                             } else if (common.Type == DeviceType.LightMixSwitch) {
                                 if ((common as LightMixSwitch).CurrentBrightness == usefullBytes [2])
                                     hadBeUpdate = false;
@@ -350,7 +357,7 @@
 
 
 
-                                int dddd = usefullBytes [0] & 0x3F;
+                            int dddd = usefullBytes [0] & 0x3F;
 
                             // 0xXX锛氬叕鍙稿唴閮ㄥ崗璁搴旂殑搴忓彿
                             // common.Type锛氬搴旂殑鏄紪杈戣蒋浠剁殑搴忓彿(娌℃湁涓�涓�瀵瑰簲锛屾槸涓轰簡灏嗙浉杩戠殑璋冩暣鍦ㄤ竴璧凤紝鏂逛究瀹㈡埛浣跨敤)

--
Gitblit v1.8.0