Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d9c581a
authored
Nov 07, 2023
by
tiger
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加日志
1 parent
09a1f7d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/client/TcpClientHandler.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/client/TcpClientHandler.java
View file @
7d9c581
...
@@ -71,8 +71,14 @@ public class TcpClientHandler extends SimpleChannelInboundHandler<byte[]> {
...
@@ -71,8 +71,14 @@ public class TcpClientHandler extends SimpleChannelInboundHandler<byte[]> {
TcpBase
rsp
=
handler
.
handle
(
ctx
.
channel
(),
up
);
TcpBase
rsp
=
handler
.
handle
(
ctx
.
channel
(),
up
);
if
(
rsp
!=
null
)
{
if
(
rsp
!=
null
)
{
// seq字段处理
rsp
.
setSeq
(
up
.
getSeq
());
byte
[]
bs
=
Ocpp16Helper
.
build
(
rsp
);
byte
[]
bs
=
Ocpp16Helper
.
build
(
rsp
);
ctx
.
channel
().
writeAndFlush
(
bs
);
ctx
.
channel
().
writeAndFlush
(
bs
);
log
.
info
(
"【{}】【{}】send1: {} "
,
ip
,
rsp
.
getClass
().
getSimpleName
(),
ByteUtils
.
toHex
(
bs
));
log
.
info
(
"【{}】【{}】send2: {} "
,
ip
,
rsp
.
getClass
().
getSimpleName
(),
rsp
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"【{}】{}"
,
ip
,
bytes
,
e
);
log
.
error
(
"【{}】{}"
,
ip
,
bytes
,
e
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment