pikapython/test/python/network/network_config.py
2023-01-25 19:28:57 +08:00

9 lines
218 B
Python

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