Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import network
sta_if = network.WLAN(network.STA_IF)
if not sta_if.isconnected():
print('connecting to network...')
sta_if.active(True)
sta_if.connect('SSIDname', 'password')
while not sta_if.isconnected():
pass
print('network config:', sta_if.ifconfig())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment