Commit 0c08c849 by zhouhaibao

[+]crc认证添加

1 parent edb9245c
......@@ -77,6 +77,10 @@ public class TcpServerHandler extends SimpleChannelInboundHandler<byte[]> {
log.info("【{}】【{}】recv1: {}", ip, up.getClass().getSimpleName(), ByteUtils.toHex(bytes));
log.info("【{}】【{}】recv2: {}", ip, up.getClass().getSimpleName(), up);
if (!Ocpp16Helper.verifyCrc(up)) {
log.warn("【警告】crc校验不通过:{}", up);
}
Class<? extends TcpHandler> handlerClass = mapper.getHandlerClass();
if (handlerClass == null && up instanceof TcpReq) {
handlerClass = DefaultReqHandler.class;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!