Ymodem ESP32 1.0.0
|
Example code to read files from SPIFFS. More...
#include <Arduino.h>
#include <SPIFFS.h>
Go to the source code of this file.
Macros | |
#define | MAX_DEBUG |
#define | DELETE_FILES |
Functions | |
void | setup () |
Setup function for initializing Serial communication and SPIFFS. | |
void | loop () |
Main loop function. | |
Example code to read files from SPIFFS.
This code is an example of how to read files from the SPIFFS filesystem using the ESP32 SPIFFS library. It lists the files in SPIFFS, reads and displays the content of each file, and optionally deletes the files after reading.
This file is used to demonstrate the SPIFFS library functionality and how to interact with the filesystem on the ESP32. It can be used to check the contents transferred using the Ymodem protocol.
Definition in file readSpiffs.cpp.
#define DELETE_FILES |
Comment this line to keep the files after reading
Definition at line 24 of file readSpiffs.cpp.
#define MAX_DEBUG |
Comment this line to disable file content display
Definition at line 23 of file readSpiffs.cpp.
void loop | ( | ) |
Main loop function.
This function is intentionally left empty as no code is needed to be executed repeatedly for this operation.
Definition at line 115 of file readSpiffs.cpp.
void setup | ( | ) |
Setup function for initializing Serial communication and SPIFFS.
This function performs the following tasks:
Definition at line 42 of file readSpiffs.cpp.