From b94f318b1cb5c3618dd53b5240c1d999c8427b71 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 29 十一月 2019 13:09:25 +0800
Subject: [PATCH] 2019.11.29

---
 ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs
index 4d99ecb..6d52a0a 100644
--- a/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs
@@ -1,6 +1,7 @@
 锘縰sing System;
 using Shared.Common;
 using Shared.Phone.Device.CommonForm;
+using Shared.Phone.Device.DeviceLogic;
 using ZigBee.Device;
 
 namespace Shared.Phone.Device.Light
@@ -246,9 +247,7 @@
                 //鍙戦�佽鍙栫姸鎬佸懡浠�
                 UserView.UserHomeView.ReadStatus(dimmableLight, () =>
                 {
-                    dimmableLight.ReadAttri(Cluster_ID.Identify, AttriButeId.Switch);
-                    dimmableLight.ReadOnOffStatus();
-                    dimmableLight.ReadLevel();
+                    ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(device.CommonDevice);
                 });
             }
             else
@@ -256,9 +255,7 @@
                 //闃叉鐭椂闂村唴澶氭璇诲彇璁惧鐘舵��
                 if ((DateTime.Now - dimmableLight.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan)
                 {
-                    dimmableLight.ReadAttri(Cluster_ID.Identify, AttriButeId.Switch);
-                    dimmableLight.ReadOnOffStatus();
-                    dimmableLight.ReadLevel();
+                    ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(device.CommonDevice);
                 }
             }
         }

--
Gitblit v1.8.0