The MicroPython WebREPL
This is just the short guide. There is a full guide here: https://learn.adafruit.com/micropython-basics-esp8266-webrepl/access-webrepl
Configuring for access point mode
Open regular REPL connection to your ESP over the serial port. See the last step of Flashing the esp for details.
Paste this (no paste mode needed) to have the esp board create a WiFi access point you can connect to.
import webrepl_setup
See Connecting via WebREPL for details on how to connect.
Configuring for connection to your WLAN
Optional: Connect to your WLAN. After you have set up the WebREPL as described above, you can configure the esp to connect to your LAN. This is how:
Connect to a REPL and paste the code below, but replace
ssid
andpassword
with the right text for your WLAN.
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('ssid', 'password')
Find your ESP on the network via your router. On my router it showed up as ‘ESP-99731D’
See Connecting via WebREPL for details on how to connect.