HDL Home App 第二版本 旧平台金堂用 正在使用
ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
@@ -648,7 +648,18 @@
          //温湿度
          else if (device.Type == DeviceType.TemperatureSensor)
          {
            cardContr = new Controls.DeviceTemperatureCardControl();
            //空气质量传感器
            //获取设备类型
            var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
            if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor)
            {
              cardContr = new Controls.DeviceAirQualitySensorCardControl();
            }
            else
            {
              cardContr = new Controls.DeviceTemperatureCardControl();
            }
          }
          //门锁
          else if (device.Type == DeviceType.DoorLock)
@@ -702,6 +713,7 @@
            }
            HdlThreadLogic.Current.RunThread(() =>
                    {
                      int sendCount = 0;
                      while (listDeviceBackContr.Parent != null)
                      {
                        bool hadSend = false;
@@ -717,7 +729,7 @@
                            //发送获取状态的命令
                            listContr[i].SendStatuComand();
                            hadSend = true;
                            System.Threading.Thread.Sleep(200);
                            System.Threading.Thread.Sleep(300);
                          }
                        }
                        if (hadSend == false)
@@ -725,7 +737,13 @@
                          //如果已经全部回路都接收了网关回复,则不再二次发送
                          break;
                        }
                        System.Threading.Thread.Sleep(2000);
                        sendCount++;
                        if (sendCount == 2)
                        {
                          //就发2次
                          break;
                        }
                        System.Threading.Thread.Sleep(5000);
                      }
                    }, ShowErrorMode.NO);
          }