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
8ec7de46
Commit
8ec7de46
authored
Apr 16, 2018
by
joliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
循环获取传感器数据
parent
c1865fab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
hfv/getData.py
hfv/getData.py
+16
-0
No files found.
hfv/getData.py
0 → 100644
View file @
8ec7de46
from
controllMatrix
import
*
import
time
print
(
updateDeviceTask
(
'25'
,
'192.168.12.1'
,
25
))
while
True
:
if
getDeviceTask
()[
0
]
==
-
1
:
print
(
output
)
continue
(
id
,
data
,
dstIP
,
ctime
)
=
getDeviceTask
()[
1
]
print
(
data
)
if
data
==
25
:
print
(
'success'
)
time
.
sleep
(
ctime
)
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