mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
9 lines
159 B
Python
9 lines
159 B
Python
|
import network
|
||
|
|
||
|
wlan = network.WLAN(network.STA_IF)
|
||
|
wlan.active(True)
|
||
|
wlan.connect('testssid', 'testpassword')
|
||
|
wlan.isconnected()
|
||
|
wlan.ifconfig()
|
||
|
wlan.close()
|