!19 绿能模块

* 绿能模块
This commit is contained in:
三丙
2025-08-09 11:00:12 +00:00
parent 3d441d75a3
commit 199711026c
34 changed files with 1122 additions and 50 deletions

View File

@@ -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;

View File

@@ -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;