From 40f46f32cb00f4304a691d4f027a76a13a9ebb6d Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期一, 16 十二月 2019 15:11:36 +0800
Subject: [PATCH] 2019.12.16

---
 ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs b/ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs
index 97bfe44..56b3416 100644
--- a/ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs
+++ b/ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs
@@ -35,8 +35,15 @@
         /// <param name="device">璁惧</param>
         public void SendACStatuComand(CommonDevice device)
         {
-            SendThermostatStatuComand(device);
-            SendFanStatuComand(device);
+            new System.Threading.Thread(() =>
+            {
+                SendFanStatuComand(device);
+                System.Console.WriteLine("鍙戦�佹椂闂�:" + DateTime.Now.ToString("o"));
+                System.Threading.Thread.Sleep(500);
+                SendThermostatStatuComand(device);
+                System.Console.WriteLine("鎺ユ敹鏃堕棿:" + DateTime.Now.ToString("o"));
+            })
+            { IsBackground = true }.Start();
         }
 
         /// <summary>
@@ -165,8 +172,13 @@
         /// <param name="device"></param>
         public void SendDimmableLightStatuComand(CommonDevice device)
         {
-            SendSwitchStatuComand(device);
-            SendLevelStatuComand(device);
+            new System.Threading.Thread(() =>
+            {
+                SendSwitchStatuComand(device);
+                System.Threading.Thread.Sleep(300);
+                SendLevelStatuComand(device);
+            })
+            { IsBackground = true }.Start();
         }
 
         /// <summary>

--
Gitblit v1.8.0