Commit ae52307a authored by wanghao's avatar wanghao

1测试上电断电操作

parent 70d5c407
...@@ -76,8 +76,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP ...@@ -76,8 +76,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
String messageGbk = new String(bytes, "GBK"); String messageGbk = new String(bytes, "GBK");
// 日志打印多种编码结果,帮助确定发送端使用的编码 // 日志打印多种编码结果,帮助确定发送端使用的编码
// log.info("收到来自{}的UDP消息:", packet.sender()); log.info("收到来自{}的UDP消息:", packet.sender());
// log.info("GBK解码: {}", messageGbk); log.info("GBK解码: {}", messageGbk);
// 根据实际情况选择正确的编码方式 // 根据实际情况选择正确的编码方式
// 这里假设通过日志观察后确定发送端使用GBK编码 // 这里假设通过日志观察后确定发送端使用GBK编码
...@@ -147,6 +147,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP ...@@ -147,6 +147,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
currentCommands.remove("127.0.0.1"); currentCommands.remove("127.0.0.1");
log.info("指令完成: {}", execution.commandId); log.info("指令完成: {}", execution.commandId);
} }
} else {
log.info("status.isFullyIdle() = false");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment