| | |
| | | } |
| | | |
| | | public static AirDataProcessor getInstance() { |
| | | return AirDataProcessor.AirDataProcessorHolder.INSTANCE; |
| | | return AirDataProcessorHolder.INSTANCE; |
| | | } |
| | | |
| | | private static class AirDataProcessorHolder { |
| | |
| | | public void process(String productKey, String deviceName, CommonFrame frame) { |
| | | String functionCode = frame.getPayload().substring(2, 4); |
| | | if (A5AtmosphereReportEnum.HeartBeat_Data.getCode().equals(functionCode)) { |
| | | log.info("心跳相应"); |
| | | log.info("心跳相应——大气数据"); |
| | | A5AtmosphereHeartbeatReportInnerFrame heartbeatReportInnerFrame = new A5AtmosphereHeartbeatReportInnerFrame().transformFrame(frame.getPayload()); |
| | | log.info(heartbeatReportInnerFrame.toString()); |
| | | |