From dce6c3481a37216292724013ff9d2b75ceb82f86 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 10 六月 2020 15:47:28 +0800
Subject: [PATCH] 添加小度的代码

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAttributeLogic.cs |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAttributeLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAttributeLogic.cs
index 20854f6..9c94480 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAttributeLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAttributeLogic.cs
@@ -398,6 +398,32 @@
             var data = new Newtonsoft.Json.Linq.JObject { { "AttriBute", attriBute } };
             jObject.Add("Data", data);
             device.Gateway?.Send(("GetDeviceStatus"), jObject.ToString());
+        }
+
+        #endregion
+
+        #region 鈻� 鑹叉俯鐏痏____________________________
+
+        /// <summary>
+        /// 鍙戦�佽幏鍙栬壊娓╃伅鐘舵�佸懡浠�
+        /// </summary>
+        /// <param name="device"></param>
+        public void SendColorTemperatureLightStatuComand(CommonDevice device)
+        {
+            if (device == null)
+            {
+                return;
+            }
+            var colorDevice = (ColorTemperatureLight)device;
+            new System.Threading.Thread(() =>
+            {
+                colorDevice.ReadOnOffStatus();
+                System.Threading.Thread.Sleep(300);
+                colorDevice.ReadLevel();
+                System.Threading.Thread.Sleep(300);
+                colorDevice.ReadColorTemperature();
+            })
+            { IsBackground = true }.Start();
         }
 
         #endregion

--
Gitblit v1.8.0