| | |
| | | if (frame == null) { |
| | | return; |
| | | } |
| | | log.info("处理订阅"); |
| | | log.info(frame.toString()); |
| | | // log.info("处理订阅"); |
| | | // log.info(frame.toString()); |
| | | if (frame.getOrderType().equals(A5OrderEnum.RESPONSE_LIGHT_DATA.getCode())) { |
| | | // 单灯数据上报处理 |
| | | LightDataProcessor.getInstance().process(productKey, deviceName, frame); |
| | |
| | | // C3充电桩上报处理 |
| | | c3ChargingReportAnalysis(productKey, deviceName, frame); |
| | | } else if (frame.getOrderType().equals(A5OrderEnum.RESPONSE_ATMOSPHERE_DATA.getCode())) { |
| | | // //测试用的 |
| | | // String s = "{\"connectType\":\"FE\",\"crc32\":\"8685DF1B\",\"functionCode\":\"A5\",\"orderType\":\"84\",\"payload\":\"F0010022FFFF0101010907640000000000000000419D000000360089000000000002019300008CA14C69\",\"payloadLength\":\"002A\",\"validate\":true}"; |
| | | // CommonFrame commonFrame1 = JSON.parseObject(s, CommonFrame.class); |
| | | // 大气数据指令上报 |
| | | AirDataProcessor.getInstance().process(productKey, deviceName, frame); |
| | | // atmosphereAnalysis(productKey, deviceName, frame); |