Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aerobs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Gattringer
aerobs
Commits
620d0cda
Commit
620d0cda
authored
1 year ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
updated for testing
parent
24dc1243
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/umnp-rhtp.py
+13
-3
13 additions, 3 deletions
programs/umnp-rhtp.py
with
13 additions
and
3 deletions
programs/umnp-rhtp.py
+
13
−
3
View file @
620d0cda
...
...
@@ -22,7 +22,6 @@ async def aggregate_and_send(
device
:
MeasurementDevice
,
sht45
:
SHT45
,
p_sensor
:
LPS28DFW
):
comm
=
device
.
communicator
t
,
rh
=
await
sht45
.
measure
()
p
,
p_t
=
await
p_sensor
.
measure
()
data
=
f
"
{
t
}
,
{
rh
}
,
{
p
}
,
{
p_t
}
"
...
...
@@ -37,10 +36,21 @@ async def main():
0
,
2_000_000
,
mosi
=
machine
.
Pin
(
19
),
miso
=
machine
.
Pin
(
16
),
sck
=
machine
.
Pin
(
18
)
)
i2c
=
machine
.
I2C
(
id
=
1
,
scl
=
machine
.
Pin
(
27
),
sda
=
machine
.
Pin
(
26
))
i2c
=
machine
.
I2C
(
id
=
1
,
scl
=
machine
.
Pin
(
5
),
sda
=
machine
.
Pin
(
4
))
ether
=
EthernetW5500
(
spi
,
machine
.
Pin
(
17
),
machine
.
Pin
(
20
),
mac
=
device
.
generated_mac_raw
(),
dhcp
=
True
spi
,
machine
.
Pin
(
17
),
machine
.
Pin
(
20
),
mac
=
device
.
generated_mac_raw
(),
dhcp
=
False
,
)
ip
=
"
192.168.0.33
"
# IP of computer with receiver software FIXME name
subnet_mask
=
"
255.255.255.0
"
# ...
gateway
=
"
192.168.0.1
"
# ...
dns
=
"
192.168.0.2
"
# technically not necessary
ether
.
set_network
(
ip
,
subnet_mask
,
gateway
,
dns
)
device
.
add_network_adapter
(
ether
)
comm
=
device
.
create_communicator
()
...
...
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