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
alex037yang
openXG-WIC-Opencpc
Commits
0a52556b
Commit
0a52556b
authored
May 09, 2018
by
joliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通过控制器直接控制device设备命令模式
parent
6e1daaee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
hfv/listenSer.py
hfv/listenSer.py
+4
-1
No files found.
hfv/listenSer.py
View file @
0a52556b
...
...
@@ -29,7 +29,7 @@ from controllMatrix import *
# 两种控制模式,controller:控制器写入控制命令,device:接收其他传感器控制命令
controlModeList
=
[
'controller'
,
'device'
]
controlMethodList
=
[
'addInput'
,
'addOutput'
,
'addCach'
,
'rm'
,
'clear'
,
'period'
,
'show'
,
'start'
,
'stop'
]
controlMethodList
=
[
'addInput'
,
'addOutput'
,
'addCach'
,
'rm'
,
'clear'
,
'period'
,
'show'
,
'start'
,
'stop'
,
'run'
]
class
ThreadedTCPRequestHandler
(
socketserver
.
BaseRequestHandler
):
'''
...
...
@@ -173,6 +173,9 @@ def executeCommand(command, information):
return
updateTaskStatus
(
1
)
elif
command
==
'stop'
:
return
updateTaskStatus
(
0
)
elif
command
==
'run'
:
method
=
information
[
0
]
return
sendCommandToDevice
(
method
)
# 创建数据库
...
...
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