mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
8 lines
143 B
Python
8 lines
143 B
Python
|
import network
|
||
|
|
||
|
wlan = network.WLAN(network.STA_IF)
|
||
|
wlan.active(True)
|
||
|
wlan.connect('testssid', 'testpassword')
|
||
|
wlan.isconnected()
|
||
|
wlan.close()
|