Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb Temperature Control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engeler
RBComb Temperature Control
Commits
7745a5d3
Commit
7745a5d3
authored
1 year ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Commenting out
parent
a7e3da12
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/drivers/pqwsw2.py
+2
-2
2 additions, 2 deletions
drivers/drivers/pqwsw2.py
drivers/drivers/rl20001.py
+2
-2
2 additions, 2 deletions
drivers/drivers/rl20001.py
with
4 additions
and
4 deletions
drivers/drivers/pqwsw2.py
+
2
−
2
View file @
7745a5d3
...
...
@@ -8,10 +8,10 @@ class PQWSW2:
url
=
f
'
http://
{
self
.
device_ip
}
/report
'
try
:
response
=
requests
.
get
(
url
)
print
(
"
Smart Switch Connected Successfully
"
)
#
print("Smart Switch Connected Successfully")
self
.
connected
=
True
except
:
print
(
f
"
Device at
{
device_ip
}
is not available. Are you connected to the PQWSW2 Wlan?
"
)
#
print(f"Device at {device_ip} is not available. Are you connected to the PQWSW2 Wlan?")
self
.
connected
=
False
def
connect
(
self
,
device_ip
):
...
...
This diff is collapsed.
Click to expand it.
drivers/drivers/rl20001.py
+
2
−
2
View file @
7745a5d3
...
...
@@ -6,11 +6,11 @@ class RL20001:
self
.
port
=
port
try
:
self
.
ser
=
serial
.
Serial
(
self
.
port
,
baudrate
=
9600
,
timeout
=
2
)
print
(
"
Numato USB Relay Connected Successfully
"
)
#
print("Numato USB Relay Connected Successfully")
self
.
connected
=
True
except
:
self
.
ser
=
None
print
(
f
"
Failed to open Serial Port
{
self
.
port
}
.
"
)
#
print(f"Failed to open Serial Port {self.port}.")
self
.
connected
=
False
def
connect
(
self
,
port
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment