Connecting to doit.am boards fails

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Connecting to doit.am boards fails

Post by pythoncoder » Wed Oct 24, 2018 5:52 am

I invoke rshell for ESPx boards with this Bash alias:

Code: Select all

alias rsusb='rshell -p /dev/ttyUSB0 --editor nano --buffer-size=30 -a'
You can omit the '--editor nano' part if you don't want to edit files directly on the target. The -a flag avoids an issue if you copy binary files to ESPx boards.

That takes you to the rshell prompt where you can perform file copies or syncs. Then issue repl to get to the REPL.

If you issue a command at the Bash prompt like

Code: Select all

rsusb cp myfile.py /pyboard
rshell will copy the file to the target and return to the Bash prompt.
Peter Hinch
Index to my micropython libraries.

Post Reply