mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
9 lines
218 B
Python
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()
|