Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
ae52307a
Commit
ae52307a
authored
Sep 23, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1测试上电断电操作
parent
70d5c407
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
NettyUdpServerHandler.java
...om/zehong/system/netty/handler/NettyUdpServerHandler.java
+4
-2
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/netty/handler/NettyUdpServerHandler.java
View file @
ae52307a
...
...
@@ -76,8 +76,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
String
messageGbk
=
new
String
(
bytes
,
"GBK"
);
// 日志打印多种编码结果,帮助确定发送端使用的编码
//
log.info("收到来自{}的UDP消息:", packet.sender());
//
log.info("GBK解码: {}", messageGbk);
log
.
info
(
"收到来自{}的UDP消息:"
,
packet
.
sender
());
log
.
info
(
"GBK解码: {}"
,
messageGbk
);
// 根据实际情况选择正确的编码方式
// 这里假设通过日志观察后确定发送端使用GBK编码
...
...
@@ -147,6 +147,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
currentCommands
.
remove
(
"127.0.0.1"
);
log
.
info
(
"指令完成: {}"
,
execution
.
commandId
);
}
}
else
{
log
.
info
(
"status.isFullyIdle() = false"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment