增加日志打印

master
18201612589 2021-12-10 20:41:15 +08:00
parent bcdf9f2b7c
commit 4c7da5a61b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,6 @@ public class NettyClientMsg {
* @param msg
*/
public static void sendMsg(String msg){
log.info("发送消息:{}",msg);
//得到16进制报文
String sHex = ConversionUtil.strToSixteen(msg);
//计算校验和
@ -36,6 +35,7 @@ public class NettyClientMsg {
sb.append(makeCheck).append(" ");
//拼接报文 截止位
sb.append(Config.MSG_END);
log.info("【{}-{}】原始消息:{},报文消息:{}",Config.VIN , System.currentTimeMillis()/1000 , msg,sb.toString());
Config.ctx.writeAndFlush(sb.toString() + Config.DATA_PACK_SEPARATOR);
}