diff --git a/src/main.py b/src/main.py index f0a3db4..db405b0 100644 --- a/src/main.py +++ b/src/main.py @@ -27,18 +27,6 @@ async def main(): patterns.tick() await asyncio.sleep_ms(1) - async def wifi_connect(): - for i in range(10): - config = wifi.connect(settings.get("wifi_ssid", ""), - settings.get("wifi_password", ""), - settings.get("wifi_ip", ""), - settings.get("wifi_gateway", "") - ) - if config: - print(config) - break - await asyncio.sleep_ms(500) - w = web(settings, patterns) print(settings) # start the server in a bacakground task @@ -47,8 +35,6 @@ async def main(): wdt = machine.WDT(timeout=10000) wdt.feed() - - #asyncio.create_task(wifi_connect()) asyncio.create_task(tick()) asyncio.create_task(p2p(settings, patterns)) diff --git a/src/settings.py b/src/settings.py index 4e7cdac..ea51d03 100644 --- a/src/settings.py +++ b/src/settings.py @@ -23,10 +23,6 @@ class Settings(dict): self["color_order"] = "rgb" self["name"] = f"led-{ubinascii.hexlify(wifi.get_mac()).decode()}" self["ap_password"] = "" - self["wifi_ssid"] = "" - self["wifi_password"] = "" - self["wifi_ip"] = "" - self["wifi_gateway"] = "" self["id"] = 0 def save(self):