pikapython/examples/network/network_connect.py
2023-03-15 16:20:59 +08:00

8 lines
143 B
Python

import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('testssid', 'testpassword')
wlan.isconnected()
wlan.close()