pikapython/examples/network/network_config.py

9 lines
218 B
Python
Raw Normal View History

2023-01-25 19:28:57 +08:00
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('testssid', 'testpassword')
wlan.config(ssid='configssid', channel=11)
print(wlan.config('ssid'), wlan.config('channel'))
wlan.close()