Example #1
0
 //设置室外温度设置
 public byte[] Set_outtemp(Set_outtemp sot)
 {
     int[] mt = {sot._outmode, Convert.ToInt16(sot._outtemp*10)};
     return setdata(206, mt);
 }
Example #2
0
 //解析室外温度设置
 public Set_outtemp Read_outtemp(byte[] inByte)
 {
     Set_outtemp so = new Set_outtemp();
     so._outmode = DataInfo.GetLongValue2(inByte, 3);
     so._outtemp = (float)Math.Round(DataInfo.GetLongValue2(inByte, 5)/10.0,1);
     return so;
 }