How nopnop2002/esp-idf-ftpserver works
Project type and purpose
• This is an embedded‐firmware component for the Espressif ESP32 family, built on the ESP-IDF framework. It implements an FTP server over Wi-Fi, exposing a FATFS or LittleFS filesystem layer on either internal flash or external SD cards.
File structure
• Top level:
• CMakeLists.txt, LICENSE, README.md – standard ESP-IDF component root.
• partitions_example*.csv, sdkconfig.defaults – default partition tables and SDK-config.
• main/ directory:
• CMakeLists.txt, component.mk, idf_component.yml, Kconfig.projbuild – build and configuration metadata for this component.
• main.c – application entry point that sets up Wi-Fi and launches the FTP task.
• ftp.c, ftp.h – core FTP server implementation interacting with VFS and TCP/IP.
README for architectural insights
• Configuration via menuconfig: selection of filesystem backend (FATFS vs LittleFS, on-flash vs SDSPI vs SDMMC).
• Wi-Fi can operate in Station or Access Point mode.
• Only passive‐mode FTP is supported.
• Uses ESP-IDF’s lwIP TCP/IP stack and VFS abstraction for filesystem operations.