Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sensor System
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Institut für Informatik
QE Research Group
FORTE
Sensor System
Commits
b385e000
Commit
b385e000
authored
2 years ago
by
Moritz Perschke
Browse files
Options
Downloads
Patches
Plain Diff
reverted change to broadcast config on start, misread docs
parent
b073705f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!39
Merge Develop into Main
,
!19
development into master
,
!17
Inital Host, initial Client
,
!5
fipy host broadcasts its mac + timestamp on start, main function of client...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
host/fipy/lib/espnow.py
+0
-4
0 additions, 4 deletions
host/fipy/lib/espnow.py
host/fipy/main.py
+1
-2
1 addition, 2 deletions
host/fipy/main.py
with
1 addition
and
6 deletions
host/fipy/lib/espnow.py
+
0
−
4
View file @
b385e000
...
...
@@ -41,10 +41,6 @@ def espnow_recv(result):
espnow_respond
(
mac
)
def
espnow_broadcast_config
():
msg
=
struct
.
pack
(
"
<6sl
"
,
self_mac
,
time
.
time
())
ESPNOW
.
send
(
None
,
msg
)
def
bytes_to_data
(
msg
):
# turn bytes from message into 22-tuple of integers(identifiers), floats(values), integer(amount) and long(timestamp)
data
=
struct
.
unpack
(
"
<10i10fil
"
,
bytes
(
msg
))
...
...
This diff is collapsed.
Click to expand it.
host/fipy/main.py
+
1
−
2
View file @
b385e000
...
...
@@ -2,7 +2,7 @@
# from network import ESPNOW
from
time
import
sleep
from
lib.server_transfer
import
DataTransferWiFi
from
lib.espnow
import
Forte_ESPNOW
,
espnow_broadcast_config
from
lib.espnow
import
Forte_ESPNOW
from
lib.rtc_time
import
RTCTime
# data = DataTransferWiFi()
...
...
@@ -14,7 +14,6 @@ from lib.rtc_time import RTCTime
#
rtc_time
=
RTCTime
((
2014
,
5
,
1
,
4
,
13
,
0
,
0
,
0
))
espnow
=
Forte_ESPNOW
()
espnow_broadcast_config
()
while
True
:
sleep
(
5
)
pass
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