| | |
| | | // /** |
| | | // * 充电开启 |
| | | // */ |
| | | // @AnonymousAccess |
| | | // @PostMapping("/startCharging") |
| | | // public ResponseVO<Object> startCharging(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | // String result = c3ChargingService.startCharging(c3ChargingParam.getC3Mac(), c3ChargingParam.getChargingCapacity(), c3ChargingParam.getChargeAmount()); |
| | |
| | | } else if (A5AtmosphereReportEnum.HeartBeat_Data_Nong_Geng.getCode().equals(functionCode)) { |
| | | log.info("心跳相应——大气数据(农耕)"); |
| | | A5AtmosphereNewHeartbeatReportInnerFrame heartbeatReportInnerFrame = new A5AtmosphereNewHeartbeatReportInnerFrame().transformFrame(frame.getPayload()); |
| | | if (heartbeatReportInnerFrame != null && heartbeatReportInnerFrame.isValidate()) { |
| | | log.info(heartbeatReportInnerFrame.toString()); |
| | | |
| | | SpringContextHolder.getBean(AirDataNongGengService.class).saveReportData(deviceName, heartbeatReportInnerFrame.getHeartBeatDataPackage()); |
| | | }else{ |
| | | System.out.println("数据校验异常!"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |