| | |
| | | * @return |
| | | */ |
| | | private static boolean isWantData(int bigType, int littleType) { |
| | | // HDLLog.info("isWantData:bigType:" + bigType + "littleType:" + littleType); |
| | | boolean isWant; |
| | | switch (bigType) { |
| | | case Configuration.LIGTH_BIG_TYPE: |
| | |
| | | case Configuration.GLOBAL_LOGIC_BIG_TYPE: |
| | | switch (littleType) { |
| | | case 0: |
| | | isWant = true; |
| | | break; |
| | | default: |
| | | isWant = false; |
| | | break; |
| | | } |
| | | break; |
| | | case Configuration.GEOTHERMAL_BIG_TYPE://20190711 新增 |
| | | switch (littleType) { |
| | | case Configuration.GEOTHERMAL_LITTLE_TYPE_0: |
| | | isWant = true; |
| | | break; |
| | | default: |
| | | isWant = false; |
| | | break; |
| | | } |
| | | break; |
| | | case Configuration.FRESH_AIR_BIG_TYPE: |
| | | switch (littleType) { |
| | | case Configuration.FRESH_AIR_LITTLE_TYPE_0: |
| | | isWant = true; |
| | | break; |
| | | default: |
| | |
| | | */ |
| | | private static void parseGeothermalData(int littleType, AppliancesInfo appliancesInfo, DevicesData devicesData, String parentRemarks, int channelNum, int port, String ipAddress) { |
| | | switch (littleType) { |
| | | case 0: |
| | | case Configuration.GEOTHERMAL_LITTLE_TYPE_0: |
| | | appliancesInfo.setDeviceName("地热模块"); |
| | | appliancesInfo.setDeviceType(HDLApConfig.TYPE_GEOTHERMAL_MODULE); |
| | | break; |