HDL Home App 第二版本 旧平台金堂用 正在使用
ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs
@@ -526,6 +526,17 @@
          {
            cardContr = new Controls.DevicePmSensorRowControl();
          }
          // 空气质量传感器
          else if (device.Type == DeviceType.TemperatureSensor)
          {
            //获取设备类型
            var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
            //空气质量传感器
            if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor)
            {
              cardContr = new Controls.DeviceAirQualitySensorRowControl();
            }
          }
          //彩灯(调光器)
          else if (device.Type == DeviceType.DimmableLight)
          {
@@ -587,6 +598,7 @@
        }
        HdlThreadLogic.Current.RunThread(() =>
              {
                int sendCount = 0;
                while (listView.Parent != null)
                {
                  bool hadSend = false;
@@ -602,7 +614,7 @@
                      //发送获取状态的命令
                      listContr[i].SendStatuComand();
                      hadSend = true;
                      System.Threading.Thread.Sleep(200);
                      System.Threading.Thread.Sleep(300);
                    }
                  }
                  if (hadSend == false)
@@ -610,7 +622,13 @@
                    //如果已经全部回路都接收了网关回复,则不再二次发送
                    break;
                  }
                  System.Threading.Thread.Sleep(2000);
                  sendCount++;
                  if (sendCount == 2)
                  {
                    //就发2次
                    break;
                  }
                  System.Threading.Thread.Sleep(5000);
                }
              }, ShowErrorMode.NO);