From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/UserView/UserPage.cs | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserView/UserPage.cs b/ZigbeeApp/Shared/Phone/UserView/UserPage.cs index 386c2ee..1dd142f 100644 --- a/ZigbeeApp/Shared/Phone/UserView/UserPage.cs +++ b/ZigbeeApp/Shared/Phone/UserView/UserPage.cs @@ -4,8 +4,8 @@ using ZigBee.Device; using Shared.Phone.Device.AC; using System.Text; -using Shared.Phone.Device.Account; - +using Shared.Phone.Device.Account; + namespace Shared.Phone.UserView { /// <summary> @@ -82,7 +82,7 @@ if (common.DeviceStatusReport.AttriBute == null || common.DeviceStatusReport.AttriBute.Count == 0) { return; - } + } switch (myDevice.Type) { case DeviceType.OnOffOutput: @@ -173,14 +173,6 @@ ac.currentSystemMode = attList.AttriButeData; ac.LastDateTime = DateTime.Now; break; - case 4099: - var value = Convert.ToString(attList.AttriButeData, 2).PadLeft(16, '0'); - var modeStr = value.Substring(value.Length - 5, 5); - for (int j = 0; j < modeStr.Length; j++) - { - ac.listSupportMode[j] = Convert.ToInt32(modeStr[j]) == 49 ? 1 : 0; - } - break; case 4097: ac.CleanStatu = attList.AttriButeData == 42; break; @@ -253,7 +245,7 @@ //娓╁害 if (common.DeviceStatusReport.CluterID == 1026) { - var tempera = (TemperatureSensor)myDevice; + var tempera = (TemperatureSensor)myDevice; foreach (var data in common.DeviceStatusReport.AttriBute) { if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) -- Gitblit v1.8.0