Page 1 of 1

Send and Run files over BLE REPL

Posted: Tue Mar 02, 2021 3:35 am
by puttley
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?

Re: Send and Run files over BLE REPL

Posted: Wed Mar 03, 2021 5:33 am
by jimmo
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

Re: Send and Run files over BLE REPL

Posted: Wed Mar 03, 2021 8:12 pm
by puttley
Thank you. I have things working using raw REPL...much appreciated.

Re: Send and Run files over BLE REPL

Posted: Fri Aug 19, 2022 9:59 am
by cluuu
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!