Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GW_pressureTest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
GW_pressureTest
Commits
0665b434
Commit
0665b434
authored
Mar 19, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新了车机号代码
parent
9cc5aa3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/pressure/SendMultMsgThread_m300.py
lib/pressure/SendMultMsgThread_m300.py
+1
-1
lib/pressure/SendMultMsgThread_m500.py
lib/pressure/SendMultMsgThread_m500.py
+1
-1
No files found.
lib/pressure/SendMultMsgThread_m300.py
View file @
0665b434
...
@@ -208,8 +208,8 @@ class SendMultMsgThread_m300(ThreadBase):
...
@@ -208,8 +208,8 @@ class SendMultMsgThread_m300(ThreadBase):
timeStart
=
int
(
time
.
time
()
*
1000
)
timeStart
=
int
(
time
.
time
()
*
1000
)
for
i
in
range
(
0
,
self
.
threadCount
):
for
i
in
range
(
0
,
self
.
threadCount
):
threadName
=
"thread-"
+
str
(
i
)
threadName
=
"thread-"
+
str
(
i
)
print
(
threadName
)
carid
=
201912000000
+
i
+
self
.
setStartCarNumber
carid
=
201912000000
+
i
+
self
.
setStartCarNumber
print
(
threadName
+
" 车机号:"
+
str
(
carid
))
theThread
=
threading
.
Thread
(
target
=
self
.
sendMsgContinuous
,
args
=
(
carid
,
threadName
,))
# 数据写死,心跳
theThread
=
threading
.
Thread
(
target
=
self
.
sendMsgContinuous
,
args
=
(
carid
,
threadName
,))
# 数据写死,心跳
threadInfo
=
{}
threadInfo
=
{}
threadInfo
[
"name"
]
=
threadName
threadInfo
[
"name"
]
=
threadName
...
...
lib/pressure/SendMultMsgThread_m500.py
View file @
0665b434
...
@@ -205,8 +205,8 @@ class SendMultMsgThread_m500(ThreadBase):
...
@@ -205,8 +205,8 @@ class SendMultMsgThread_m500(ThreadBase):
timeStart
=
int
(
time
.
time
()
*
1000
)
timeStart
=
int
(
time
.
time
()
*
1000
)
for
i
in
range
(
0
,
self
.
threadCount
):
for
i
in
range
(
0
,
self
.
threadCount
):
threadName
=
"thread-"
+
str
(
i
)
threadName
=
"thread-"
+
str
(
i
)
print
(
threadName
)
carid
=
201912000000
+
i
+
self
.
setStartCarNumber
carid
=
201912000000
+
i
+
self
.
setStartCarNumber
print
(
threadName
+
" 车机号:"
+
str
(
carid
))
theThread
=
threading
.
Thread
(
target
=
self
.
sendMsgContinuous
,
args
=
(
carid
,
threadName
,))
# 数据写死,心跳
theThread
=
threading
.
Thread
(
target
=
self
.
sendMsgContinuous
,
args
=
(
carid
,
threadName
,))
# 数据写死,心跳
threadInfo
=
{}
threadInfo
=
{}
threadInfo
[
"name"
]
=
threadName
threadInfo
[
"name"
]
=
threadName
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment