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 7a58e4aa
authored
Nov 08, 2023
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
9d207828
59357f3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/ClientSimulateTest.java
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/ClientSimulateTest.java
View file @
7a58e4a
...
...
@@ -28,7 +28,7 @@ public class ClientSimulateTest {
LoginReq
req
=
new
LoginReq
();
req
.
setData
(
new
LoginReqData
());
req
.
getData
().
setP
ointId
(
Ocpp16Helper
.
strToBcd
(
"55031412782305"
,
req
.
getData
().
getPoint
Id
()));
req
.
getData
().
setP
ileId
(
Ocpp16Helper
.
strToBcd
(
"55031412782305"
,
req
.
getData
().
getPile
Id
()));
req
.
getData
().
setPointType
((
byte
)
0
);
req
.
getData
().
setGunCount
((
byte
)
2
);
req
.
getData
().
setSoftVersion
(
Ocpp16Helper
.
strToBcd
(
"v4.1.50"
,
req
.
getData
().
getSoftVersion
()));
...
...
@@ -40,7 +40,7 @@ public class ClientSimulateTest {
while
(
true
)
{
HeartbeatReq
heartbeat
=
new
HeartbeatReq
();
HeartbeatReqData
hdata
=
new
HeartbeatReqData
();
hdata
.
setP
ointId
(
req
.
getData
().
getPoint
Id
());
hdata
.
setP
ileId
(
req
.
getData
().
getPile
Id
());
hdata
.
setStatus
((
byte
)
0
);
heartbeat
.
setData
(
hdata
);
...
...
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