| | |
| | | Object vocsValue = ObjectUtils.isEmpty(deviceData.get(Constants.SENSOR_CODE_VOCS)) ? 0F : deviceData.get(Constants.SENSOR_CODE_VOCS); |
| | | env.put("vocs", vocsValue); |
| | | } |
| | | if (formula.contains("cel")) { |
| | | if (formula.contains("ce1")) { |
| | | //env.put("cel", Float.parseFloat((String) measuredValue)); |
| | | env.put("ce1", new BigDecimal(String.valueOf(measuredValue)).floatValue()); |
| | | }else if(formula.contains("cel")){ |
| | | env.put("cel", new BigDecimal(String.valueOf(measuredValue)).floatValue()); |
| | | } |
| | | |
| | | //校准 |
| | | measuredValue = expression.execute(env); |
| | | //温度处理 |