增加日志打印
parent
bcdf9f2b7c
commit
4c7da5a61b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue