Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-WIC-Opencpc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-WIC-Opencpc
Commits
88a59fb2
Commit
88a59fb2
authored
Mar 25, 2018
by
joliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码版本为执行多条任务指令
parent
d11e5a0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
hfv/workProcess.py
hfv/workProcess.py
+1
-1
tests/testListenSer.py
tests/testListenSer.py
+1
-1
No files found.
hfv/workProcess.py
View file @
88a59fb2
...
...
@@ -25,7 +25,7 @@ def findTask():
conn
=
sqlite3
.
connect
(
"task.db"
)
cursor
=
conn
.
cursor
()
cursor
.
execute
(
sql
)
data
=
cursor
.
fetch
one
()
data
=
cursor
.
fetch
all
()
if
data
is
None
:
(
status
,
output
)
=
(
-
1
,
'database is empty!'
)
else
:
...
...
tests/testListenSer.py
View file @
88a59fb2
...
...
@@ -6,7 +6,7 @@ message = sys.argv[2]
# message = "controller&clear&niubi"
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
connect
((
"1
27.0.0.1
"
,
port
))
s
.
connect
((
"1
92.168.12.19
"
,
port
))
s
.
sendall
(
message
.
encode
())
response
=
s
.
recv
(
1024
).
decode
()
print
(
response
)
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