.st0{fill:#FFFFFF;}

ESP32

ESP32: how to retrieve a file from the SPIFFS 

 July 8, 2019

By  Peter

Join Our Mailing List

We publish fresh content each week. Read how-to's on Arduino, ESP32, KiCad, Node-RED, drones and more. Listen to interviews. Learn about new tech with our comprehensive reviews. Get discount offers for our courses and books. Interact with our community.

One email per week, no spam, unsubscribe at any time.

In ESP32 For Busy People, I have a section on the SPIFFS, the SPI file system. In this section, I show you how you can upload a file (like an image, or a text file) to your ESP32 and then use it in your sketches.

One thing I did not show was how to retrieve a file from the SPIFFS. For example, you may have a sketch that logs sensor data to a text file. How can you retrieve that file so you can process it on your computer?

A straight-forward way to do this is to run a simple web server on your ESP32. Using a browser, you can use this web server to download any file in the SPIFFS.

If you have installed the ESP32 Arduino Core in the Arduino IDE, you can use one of the example sketches that come with the package.

It’s the FSBrowser sketch, under File –> Examples –> Webserver.

In this video, I show you how to retrieve a file from the ESP32 using this sketch.


Tags


You may also like

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

I’m thrilled to share a major update to my course, Arduino Step by Step Getting Started. The course now includes a comprehensive section on using online Arduino simulators, making learning and experimenting with Arduino easier

Read More
New Simulator Tutorials in Arduino Step by Step Getting Started

When compared TFT, LCD, and OLED, E-paper displays stand out for their energy efficiency, excellent readability in bright light, and a look that mimics traditional ink on paper. The Crowpanel ESP32 4.2” e-paper display, offered

Read More
Crowpanel ESP32 4.2” E-Paper Display: A Versatile and Energy-Efficient HMI Solution