Skip to content
Snippets Groups Projects
Commit b385e000 authored by Moritz Perschke's avatar Moritz Perschke
Browse files

reverted change to broadcast config on start, misread docs

parent b073705f
No related branches found
No related tags found
4 merge requests!39Merge Develop into Main,!19development into master,!17Inital Host, initial Client,!5fipy host broadcasts its mac + timestamp on start, main function of client...
......@@ -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))
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment