From b385e0002cb4dff10649a048b96ca599a7cb3894 Mon Sep 17 00:00:00 2001
From: Moritz Perschke <moritz.perschke@uibk.ac.at>
Date: Thu, 8 Sep 2022 14:18:34 +0200
Subject: [PATCH] reverted change to broadcast config on start, misread docs

---
 host/fipy/lib/espnow.py | 4 ----
 host/fipy/main.py       | 3 +--
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/host/fipy/lib/espnow.py b/host/fipy/lib/espnow.py
index 21f4d57..6afe2a8 100644
--- a/host/fipy/lib/espnow.py
+++ b/host/fipy/lib/espnow.py
@@ -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))
diff --git a/host/fipy/main.py b/host/fipy/main.py
index 2d0fb65..020d027 100644
--- a/host/fipy/main.py
+++ b/host/fipy/main.py
@@ -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
-- 
GitLab