Commit edb9245c by zhouhaibao

日志打印

1 parent 351bab8f
package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.handler; package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.handler;
import cn.com.glsx.charging.modules.gbt.ocpp16.Ocpp16Helper;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpHandler; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpHandler;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.HeartbeatRspData; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.HeartbeatRspData;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.HeartbeatReq; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol.HeartbeatReq;
...@@ -13,6 +14,7 @@ public class HeartbeatReqHandler implements TcpHandler<HeartbeatReq, HeartbeatRs ...@@ -13,6 +14,7 @@ public class HeartbeatReqHandler implements TcpHandler<HeartbeatReq, HeartbeatRs
HeartbeatRsp rsp = new HeartbeatRsp(); HeartbeatRsp rsp = new HeartbeatRsp();
HeartbeatRspData data = new HeartbeatRspData(); HeartbeatRspData data = new HeartbeatRspData();
log.info("请求验证的桩号{}", Ocpp16Helper.bcdToStr(req.getData().getPointId()));
data.setPointId(req.getData().getPointId()); data.setPointId(req.getData().getPointId());
data.setGunNo(req.getData().getGunNo()); data.setGunNo(req.getData().getGunNo());
data.setResult((byte) 0); data.setResult((byte) 0);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!