| | |
| | | var data = device.DeviceStatusReport.AttriBute[i];
|
| | | if (data.AttributeId == 0)
|
| | | {
|
| | | //室内温度
|
| | | if (data.AttriButeData == 0)
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //0℃
|
| | | rowInfo.btnValue.Text = "0.0℃";
|
| | | }
|
| | | else if (data.AttriButeData > 32767)
|
| | | {
|
| | | //负数(特殊处理)
|
| | | string strValue = (data.AttriButeData - 65536).ToString();
|
| | | //小数点需要一位
|
| | | strValue = strValue.Substring(0, strValue.Length - 1);
|
| | | rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
|
| | | }
|
| | | else
|
| | | {
|
| | | //小数点需要一位
|
| | | string strValue = data.AttriButeData.ToString();
|
| | | strValue = strValue.Substring(0, strValue.Length - 1);
|
| | | rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
|
| | | }
|
| | | //室内温度
|
| | | if (data.AttriButeData == 0)
|
| | | {
|
| | | //0℃
|
| | | rowInfo.btnValue.Text = "0.0℃";
|
| | | }
|
| | | else if (data.AttriButeData > 32767)
|
| | | {
|
| | | //负数(特殊处理)
|
| | | string strValue = (data.AttriButeData - 65536).ToString();
|
| | | //小数点需要一位
|
| | | strValue = strValue.Substring(0, strValue.Length - 1);
|
| | | rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
|
| | | }
|
| | | else
|
| | | {
|
| | | //小数点需要一位
|
| | | string strValue = data.AttriButeData.ToString();
|
| | | strValue = strValue.Substring(0, strValue.Length - 1);
|
| | | rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
|
| | | }
|
| | | });
|
| | | }
|
| | | else if (data.AttributeId == 28)
|
| | | {
|
| | |
| | | //Off = 0 Auto = 1 Cool = 3 Heat = 4 FanOnly = 7 Dry = 8
|
| | | if (data.AttriButeData != 0)
|
| | | {
|
| | | rowInfo.btnSwitch.IsSelected = true;
|
| | | rowInfo.btnIcon.IsSelected = true;
|
| | | rowInfo.btnIconBack.BackgroundColor = 0xfffef1ed;
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | rowInfo.btnSwitch.IsSelected = true;
|
| | | rowInfo.btnIcon.IsSelected = true;
|
| | | rowInfo.btnIconBack.BackgroundColor = 0xfffef1ed;
|
| | | });
|
| | | }
|
| | | }
|
| | | else if (data.AttributeId == 4097)
|
| | |
| | | //42:需要清洗滤网
|
| | | if (data.AttriButeData == 42)
|
| | | {
|
| | | rowInfo.btnWarningIcon.Visible = true;
|
| | | //请注意清洗滤网哦
|
| | | rowInfo.btnWarningMsg.TextID = R.MyInternationalizationString.uPleaseClreanACfilter;
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | rowInfo.btnWarningIcon.Visible = true;
|
| | | //请注意清洗滤网哦
|
| | | rowInfo.btnWarningMsg.TextID = R.MyInternationalizationString.uPleaseClreanACfilter;
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|