Load files over wifi

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
bruscon
Posts: 2
Joined: Thu Jan 28, 2021 3:14 am

Load files over wifi

Post by bruscon » Thu Jan 28, 2021 3:25 am

So I have no trouble loading files onto my ESP-01 using Ampy. But I was wondering if anyone knew of a way to load them over wifi instead? I see that with ESP BASIC you can put files directly into the flash memory from a web brower, I was wondering if there is a micropython equivalent.

The ESP-01 only has two free GPIO's when it is using serial, I could really use two more for my project.

very best,

-Nick

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Load files over wifi

Post by davef » Thu Jan 28, 2021 6:23 am

The ESP-01 only has two free GPIO's when it is using serial, I could really use two more for my project.
Have a look at the ESP-07S

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Load files over wifi

Post by Roberthh » Thu Jan 28, 2021 6:45 am

But I was wondering if anyone knew of a way to load them over wifi instead?
For that purpose I tailored & extended a ftp server. It exists in two flavors: a background version which can be started at boot time and a foreground version, which will be started and stopped manually when needed. Due to the small heap size of the ESP8266 port, the background version should be included in the firmware as frozen bytecode, while teh foreground version still can run as pre-compiled code.

See: https://github.com/robert-hh/FTP-Server ... 2-and-PYBD

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: Load files over wifi

Post by Christian Walther » Fri Jan 29, 2021 11:40 am

WebREPL allows file transfer using either the HTML or command-line client.

bruscon
Posts: 2
Joined: Thu Jan 28, 2021 3:14 am

Re: Load files over wifi

Post by bruscon » Fri Jan 29, 2021 4:07 pm

This is exactly what I am looking for. Thanks!

Post Reply