Remove wifi client

This commit is contained in:
jimmy 2025-06-19 19:13:13 +12:00
parent 524db5e979
commit 03f3f02da8
2 changed files with 0 additions and 18 deletions

View File

@ -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))

View File

@ -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):