From dee21bf452a8979d0515d13e534fbb69ed9715dd Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 01 九月 2020 15:33:13 +0800 Subject: [PATCH] 上传一个版本 --- ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs index afd1449..867258a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs @@ -24,6 +24,10 @@ /// 婵�娲荤殑璁惧鍦板潃 /// </summary> private string actionDeviceKeys = null; + /// <summary> + /// 鎺ユ敹鍥炲鐨勭鐐� + /// </summary> + private HashSet<int> listReceivePoint = new HashSet<int>(); #endregion @@ -36,6 +40,11 @@ public void ShowForm(string i_diviceMac) { this.listDevice = Common.LocalDevice.Current.GetDevicesByMac(i_diviceMac); + //鏀堕泦鍏ㄩ儴绔偣 + foreach (var device in this.listDevice) + { + listReceivePoint.Add(device.DeviceEpoint); + } //璁剧疆澶撮儴淇℃伅 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uIndoorUnitSettion)); @@ -242,15 +251,24 @@ } HdlThreadLogic.Current.RunThread(() => { - for (int i = 0; i < listDevice.Count; i++) + while (this.listReceivePoint.Count > 0 && this.Parent != null) { - if (this.Parent == null) + for (int i = 0; i < listDevice.Count; i++) { - return; + if (this.Parent == null) + { + return; + } + //宸茬粡鍙戦�佽繃浜�,灏变笉鐢ㄥ啀鍙戦�� + if (this.listReceivePoint.Contains(listDevice[i].DeviceEpoint) == true) + { + //璇诲彇鐘舵�� + HdlDeviceAttributeLogic.Current.SendThermostatStatuComand(listDevice[i]); + System.Threading.Thread.Sleep(200); + } } - //璇诲彇鐘舵�� - HdlDeviceAttributeLogic.Current.SendThermostatStatuComand(listDevice[i]); - System.Threading.Thread.Sleep(200); + //3绉掑悗鍐嶆寰幆 + System.Threading.Thread.Sleep(3000); } }); } @@ -276,6 +294,8 @@ { return; } + //宸茬粡鎺ユ敹鍒版暟鎹�,鍒欑Щ闄ょ鐐� + this.listReceivePoint.Remove(device.DeviceEpoint); var rowInfo = dicControl[mainkeys]; for (int i = 0; i < device.DeviceStatusReport.AttriBute.Count; i++) -- Gitblit v1.8.0