Looking promising ...
Code:
>>> import network>>> wlan = network.WLAN(network.STA_IF)>>> wlan.ifconfig()('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')>>> wlan.ifconfig("nodhcp")>>> wlan.ifconfig()('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')>>> wlan.active(True)>>> wlan.ifconfig()('0.0.0.0', '255.255.255.0', '192.168.0.1', '8.8.8.8')>>> import secrets>>> wlan.connect(secrets.SSID, secrets.PASSWORD)>>> wlan.ifconfig()('0.0.0.0', '255.255.255.0', '192.168.0.1', '8.8.8.8')>>>Statistics: Posted by hippy — Fri Jan 26, 2024 12:37 am