| | |
| | | var ac = (AC)myDevice;
|
| | | ac.DeviceStatusReport = common.DeviceStatusReport;
|
| | | var attriButeList = ac.DeviceStatusReport.AttriBute;
|
| | | foreach(var attList in attriButeList)
|
| | | foreach (var attList in attriButeList)
|
| | | {
|
| | | //此属性表明室内当前的温度 * 100,实际温度为“LocalTemperature / 100”,单位:℃ |
| | | var curTemp = (attList.AttriButeData / 100 < ACControlBase.Temperature_High && attList.AttriButeData / 100 > ACControlBase.Temperature_Low) ? attList.AttriButeData / 100 : ACControlBase.Temperature_Default; |
| | |
| | | var ac = (AC)myDevice; |
| | | var attriButeList = common.DeviceStatusReport.AttriBute; |
| | | ac.DeviceStatusReport = common.DeviceStatusReport; |
| | | foreach(var attList in attriButeList) |
| | | foreach (var attList in attriButeList) |
| | | { |
| | | switch (attList.AttributeId) |
| | | {
|
| | |
| | | //记录回复时间
|
| | | myDevice.LastDateTime = DateTime.Now; |
| | | } |
| | | else if (typeTag == "IASInfoReport") |
| | | { |
| | | try |
| | | { |
| | | switch (myDevice.Type) |
| | | { |
| | | case DeviceType.IASZone: |
| | | var iAS = (IASZone)myDevice; |
| | | iAS.iASInfo = (common as IASZone).iASInfo; |
| | | iAS.LastDateTime = DateTime.Now; |
| | | break; |
| | | } |
| | | } |
| | | catch { } |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IL ogic status. |