JLChen
2021-08-06 47675876dbc24ea2fa54a1f4090f1a998ed2e5cf
hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLDeviceManger/Parser/DeviceParser.java
@@ -204,7 +204,15 @@
                }
                break;
            case Configuration.SENSOR_BIG_TYPE:
                if (littleType >= 0 && littleType <= 24) {
//                if (littleType >= 0 && littleType <= 27) {
//                    isWant = true;
//                } else {
//                    isWant = false;
//                }
                //2021-08-05 增加海克传感器5种类型支持 2:温度 3:湿度 5:TVOC 6:PM2.5 7:CO2
                if (littleType == 0 || littleType == 1 || littleType == 2 || littleType == 3 || littleType == 5 || littleType == 6 || littleType == 7
                        || littleType == 9 || littleType == 11 || (littleType > 24 && littleType <= 27)) {
                    isWant = true;
                } else {
                    isWant = false;
@@ -663,7 +671,7 @@
            appliancesInfo.setIpAddress(ipAddress);
            if (littleType == 0 || littleType == 1 || littleType == 10 ||  littleType == 11 || littleType == 25 || littleType == 26 || littleType == 27) {
            if (getIfDryContactSensor(littleType)) {
                //干节点0 移动传感器1 煤气传感器10 烟雾传感器11 水浸25 门磁窗磁26 紧急按钮27
                appliancesInfo.setStateCommand(Configuration.DRY_CONTACT_STATE_COMMAND);
                appliancesInfo.setStateBackCommand(Configuration.DRY_CONTACT_STATE_BACK_COMMAND);
@@ -675,9 +683,14 @@
        }
    }
    /**
     * 判断当前小类是否为使用干节点指令的传感器
     */
    public static boolean getIfDryContactSensor(int littleType){
        return (littleType == 0 || littleType == 1 || littleType == 10 ||  littleType == 11 || littleType == 25 || littleType == 26 || littleType == 27);
    }
    /**
     *地热