Page 1 of 1

REPL over Wi-FI

Posted: Fri Jul 24, 2020 9:41 am
by MrRobot
Does anyone know a way to connect to the Pyboard D via Wi-Fi.

I can see from the following code I can set the Pyboard D as a Wi-Fi access point :

Code: Select all

import network

wl_ap = network.WLAN(1)
wl_ap.config(essid='PYBD')          # set AP SSID
wl_ap.config(password='pybd0123')   # set AP password
wl_ap.config(channel=6)             # set AP channel
wl_ap.active(1)                     # enable the AP

wl_ap.status('stations')    # get a list of connection stations
wl_ap.active(0)             # shut down the AP
But is there a way to connect to it and get a REPL terminal?

Re: REPL over Wi-FI

Posted: Mon Jul 27, 2020 3:28 am
by jimmo
Once you've set up wifi and you can ping the pyboard from your computer, you can use webrepl to access a repl.

See instructions for ESP8266 here (although it's the same on pyboard). https://docs.micropython.org/en/latest/ ... -over-wifi

Re: REPL over Wi-FI

Posted: Mon Jul 27, 2020 10:44 am
by MrRobot
Great! Thanks very much