Add device ID

This commit is contained in:
2025-06-04 19:54:06 +12:00
parent 55ef5c1580
commit 0b6eb9724f
4 changed files with 24 additions and 3 deletions

View File

@@ -26,14 +26,15 @@ async def main():
patterns.tick()
await asyncio.sleep_ms(1)
async def espnow():
e = aioespnow.AIOESPNow() # Returns AIOESPNow enhanced with async support
e.active(True)
async for mac, msg in e:
print(msg)
data = json.loads(msg)
settings.set_settings(data, patterns)
print(data)
if settings["id"] in data["ids"]:
settings.set_settings(data["settings"], patterns)
print("should not print")
async def wifi_connect():