| | |
| | | package com.hdl.sdk.ttl.HDLAppliances.HDLAirCondition; |
| | | |
| | | import android.util.Log; |
| | | |
| | | import com.hdl.sdk.ttl.HDLDeviceManger.Bean.AppliancesInfo; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | private String indoorHumidity;//室内湿度 0-100 |
| | | private int indoorTempInt;//室内温度点整数部分 |
| | | private int indoorTempFloat;//室内温度点小数部分 |
| | | private int refTemp;//制冷温度点 0-84 |
| | | private int heatTemp;//制热温度点 0-84 |
| | | |
| | | private String coldTemp;//制冷温度点,支持小数的用这个 |
| | | private int refTemp;//制冷温度点整数部分 0-84 |
| | | private int refTempFloat;//制冷温度点小数部分 |
| | | |
| | | private String hotTemp;//制冷温度点,支持小数的用这个 |
| | | private int heatTemp;//制热温度点整数部分 0-84 |
| | | private int heatTempFloat;//制热温度点小数部分 |
| | | |
| | | private String setTemp;//制冷温度点 0-84 |
| | | private int setTempInt;//制热温度点整数部分 0-84 |
| | | private int setTempFloat;//制热温度点小数部分 |
| | | |
| | | private int airMode;//空调模式0 = 制冷, 1 = 制热 |
| | | private byte[] curState;//控制回馈信息 |
| | | |
| | |
| | | |
| | | if (this.curState == null) return; |
| | | |
| | | if (this.curState.length >= 14) { |
| | | if (this.curState.length >= 19) { |
| | | this.channelNum = this.curState[0] & 0xFF; |
| | | this.indoorTempInt = this.curState[2] & 0xFF; |
| | | this.refTemp = this.curState[3] & 0xFF;//制冷温度点 0-84 |
| | | this.heatTemp = this.curState[4] & 0xFF;//制热温度点 0-84 |
| | | this.isOn = this.curState[8] & 0xFF;//只取低4位 |
| | | this.airMode = this.curState[9] & 0xFF; |
| | | this.setTempInt = this.curState[11] & 0xFF; |
| | | this.indoorTempFloat = this.curState[13] & 0xFF; |
| | | this.indoorTemp = indoorTempInt + "." + indoorTempFloat; |
| | | |
| | | this.refTempFloat = this.curState[14] & 0xFF; |
| | | this.coldTemp = refTemp + "." + refTempFloat; |
| | | |
| | | this.heatTempFloat = this.curState[15] & 0xFF; |
| | | this.hotTemp = heatTemp + "." + heatTempFloat; |
| | | |
| | | this.setTempFloat = this.curState[18] & 0xFF; |
| | | this.setTemp = setTempInt + "." + setTempFloat; |
| | | |
| | | } else if (this.curState.length >= 14) { |
| | | this.channelNum = this.curState[0] & 0xFF; |
| | | this.indoorTempInt = this.curState[2] & 0xFF; |
| | | this.refTemp = this.curState[3] & 0xFF;//制冷温度点 0-84 |
| | |
| | | this.airMode = airMode; |
| | | } |
| | | |
| | | public String getColdTemp() { |
| | | return coldTemp; |
| | | } |
| | | |
| | | public void setColdTemp(String coldTemp) { |
| | | this.coldTemp = coldTemp; |
| | | } |
| | | |
| | | public String getHotTemp() { |
| | | return hotTemp; |
| | | } |
| | | |
| | | public void setHotTemp(String hotTemp) { |
| | | this.hotTemp = hotTemp; |
| | | } |
| | | |
| | | public String getSetTemp() { |
| | | return setTemp; |
| | | } |
| | | |
| | | public void setSetTemp(String setTemp) { |
| | | this.setTemp = setTemp; |
| | | } |
| | | |
| | | public byte[] getCurState() { |
| | | return curState; |
| | | } |