Skip to content

Instantly share code, notes, and snippets.

@phieber
Last active October 8, 2016 19:35
Show Gist options
  • Save phieber/c46d97afdf78b37279f78b96c2bef7fa to your computer and use it in GitHub Desktop.
Save phieber/c46d97afdf78b37279f78b96c2bef7fa to your computer and use it in GitHub Desktop.
esp8266-01 micropython
import network
import gc
import webrepl
import esp
esp.osdebug(None)
ap_if = network.WLAN(network.AP_IF)
sta_if = network.WLAN(network.STA_IF)
ap_if.active(False)
sta_if.active(True)
sta_if.connect('filewalker','mypasswd')
webrepl.start()
gc.collect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment