pikapython/examples/network/network_connect.py

8 lines
143 B
Python
Raw Normal View History

2023-01-25 14:14:05 +08:00
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('testssid', 'testpassword')
wlan.isconnected()
wlan.close()