| | |
| | | // private final String payload; |
| | | // private final String functionCode = DataTransportOrderType.LightTimer.getCode(); |
| | | // private final String payloadLength; |
| | | @Override |
| | | public String getEncodeFrame() { |
| | | String functionCode = AtmoFunctionCode.QueryHeartBeat.getCode(); |
| | | String payloadLength = "0002"; |
| | | String payload = "FFFF"; |
| | | String frame = functionCode + payloadLength + payload; |
| | | return MQTTConnectTypeEnum.SYNCHRONIZATION.getCode() + frame.toUpperCase() + CRC32Utils.getCRC32(frame.toUpperCase()); |
| | | } |
| | | |
| | | |
| | | public AirDataReqInnerFrame() { |
| | | } |
| | | |
| | | @Override |
| | | public String getEncodeFrame() { |
| | | String functionCode = AtmoFunctionCode.QueryHeartBeat.getCode(); |
| | | String payloadLength = "0002"; |
| | | String payload = "FFFF"; |
| | | String frame = functionCode + payloadLength + payload; |
| | | return MQTTConnectTypeEnum.SYNCHRONIZATION.getCode() + frame.toUpperCase() + CRC32Utils.getCRC32(frame.toUpperCase()); |
| | | } |
| | | |
| | | } |