mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 09:59:55 +08:00
@@ -30,6 +30,8 @@ import java.util.function.Consumer;
|
||||
@Setter
|
||||
public class TcpSession extends ProtocolSession {
|
||||
|
||||
public static final String SCHEDULE_KEY_AUTO_SYNC_TIME = "auto-sync-time";
|
||||
|
||||
private SocketAddress address;
|
||||
|
||||
private ChannelHandlerContext ctx;
|
||||
|
||||
@@ -82,7 +82,7 @@ public class JCPPLengthFieldBasedFrameDecoder extends ByteToMessageDecoder {
|
||||
protected Object decode(ChannelHandlerContext ctx, ByteBuf in) {
|
||||
if (log.isDebugEnabled()) {
|
||||
String hexDump = ByteBufUtil.hexDump(in);
|
||||
log.debug("{} 开始解析16进制报文:{}", ctx.channel(), hexDump);
|
||||
log.debug("{} 开始拆解16进制报文:{}", ctx.channel(), hexDump);
|
||||
}
|
||||
// 帧长
|
||||
long frameLength = 0;
|
||||
|
||||
Reference in New Issue
Block a user