pikapython/test/python/network/network_connect.py

9 lines
159 B
Python
Raw Normal View History

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