REPL over Wi-FI

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
MrRobot
Posts: 31
Joined: Mon May 11, 2020 11:30 am

REPL over Wi-FI

Post by MrRobot » Fri Jul 24, 2020 9:41 am

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?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: REPL over Wi-FI

Post by jimmo » Mon Jul 27, 2020 3:28 am

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

MrRobot
Posts: 31
Joined: Mon May 11, 2020 11:30 am

Re: REPL over Wi-FI

Post by MrRobot » Mon Jul 27, 2020 10:44 am

Great! Thanks very much

Post Reply