Add device ID
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user