Send and Run files over BLE REPL

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
puttley
Posts: 4
Joined: Mon Feb 22, 2021 3:00 am

Send and Run files over BLE REPL

Post by puttley » Tue Mar 02, 2021 3:35 am

Hi All - I'm using an ESP32 board successfully with BLE Repl. I'd like to know how I can upload files to my board and run them as is done with the webREPL terminal application. My goal is to create a Blockly based programming app that generates micropython code that can be uploaded to the ESP32 and executed using a bluetooth connection. The BIPES and MicroPython Ardublockly projects are great examples of doing this using webREPL, however I'd like to implement this using bluetooth. Are there any examples that demonstrate how to do this?

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

Re: Send and Run files over BLE REPL

Post by jimmo » Wed Mar 03, 2021 5:33 am

puttley wrote:
Tue Mar 02, 2021 3:35 am
Are there any examples that demonstrate how to do this?
Have a look at pyboard.py to see how to transmit files over the REPL (basically, it scripts the filesystem operations). https://github.com/micropython/micropyt ... pyboard.py

puttley
Posts: 4
Joined: Mon Feb 22, 2021 3:00 am

Re: Send and Run files over BLE REPL

Post by puttley » Wed Mar 03, 2021 8:12 pm

Thank you. I have things working using raw REPL...much appreciated.

cluuu
Posts: 1
Joined: Fri Aug 19, 2022 7:44 am

Re: Send and Run files over BLE REPL

Post by cluuu » Fri Aug 19, 2022 9:59 am

puttley wrote:
Wed Mar 03, 2021 8:12 pm
Thank you. I have things working using raw REPL...much appreciated.
I know this thread is over a year old, but would you be willing to share some of your code to achieve this? Thanks in advance!

Post Reply