pikapython/test/python/network/network_connect.py
2023-01-27 23:00:53 +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()