Uploaded March 2019 | Updated September 2026, 3 weeks ago
This tutorial explains how to mount the SPIFFS file system, create a file and write some content to it.
SPIFFS stands for SPI Flash File System and it is one of the file system types supported by the ESP32.
Written tutorial at my blog, with full source code:
techtutorialsx.com/2018/08/05/esp32-arduino-spiffs-writing-a-file
Video with the explanation on how to read a file: youtube.com/watch?v=xc93ygUngmI&feature=youtu.be
ESP32 FireBeetle board from DFRobot:
dfrobot.com/product-1590.html
SPIFFS file system GitHub project: github.com/pellepl/spiffs
IDF documentation: docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/spiffs.html
SPIFFS Arduino core header file:github.com/espressif/arduino-esp32/blob/master/libraries/SPIFFS/src/SPIFFS.h
File class: github.com/espressif/arduino-esp32/blob/master/libraries/FS/src/FS.h#L47
Related content (written tutorials):
- Append content to file in SPIFFS: techtutorialsx.com/2018/08/13/esp32-arduino-spiffs-append-content-to-file
- Serving Bootstrap from the ESP32 SPIFFS file system: techtutorialsx.com/2019/03/04/esp32-arduino-serving-bootstrap
- SPIFFS file upload plugin: techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin
This tutorial explains how to mount the SPIFFS file system, create a file and write some content to it.
SPIFFS stands for SPI Flash File System and it is one of the file system types supported by the ESP32.
Written tutorial at my blog, with full source code:
techtutorialsx.com/2018/08/05/esp32-arduino-spiffs-writing-a-file
Video with the explanation on how to read a file: youtube.com/watch?v=xc93ygUngmI&feature=youtu.be
ESP32 FireBeetle board from DFRobot:
dfrobot.com/product-1590.html
SPIFFS file system GitHub project: github.com/pellepl/spiffs
IDF documentation: docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/spiffs.html
SPIFFS Arduino core header file:github.com/espressif/arduino-esp32/blob/master/libraries/SPIFFS/src/SPIFFS.h
File class: github.com/espressif/arduino-esp32/blob/master/libraries/FS/src/FS.h#L47
Related content (written tutorials):
- Append content to file in SPIFFS: techtutorialsx.com/2018/08/13/esp32-arduino-spiffs-append-content-to-file
- Serving Bootstrap from the ESP32 SPIFFS file system: techtutorialsx.com/2019/03/04/esp32-arduino-serving-bootstrap
- SPIFFS file upload plugin: techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin








![ESP32 Arduino: controlling a relay demo [written tutorial in blog]
Demo showing the control of a relay from the ESP32.
This video is just a demo, the tutorial can be found at my blog:
https://techtutorialsx.com/2018/02/17/esp32-arduino-controlling-a-relay/
You can find a lot more tutorials on the ESP32 at my blog:
https://techtutorialsx.com/category/esp32/ ESP32 Arduino: controlling a relay demo [written tutorial in blog]](https://i.ytimg.com/vi/TUd_R5gE514/mqdefault.jpg)

