ESPWebDAV icon indicating copy to clipboard operation
ESPWebDAV copied to clipboard

No documentation. How can i use SD card with FAT instead of LittleFS ????

Open nightgryphon opened this issue 3 years ago • 4 comments

How can i replace LittleFS with FAT SD card with SPI access? Can i return back SDFat used within original code or there is another solution specific for this library? How can i turn storage on and off to change SD card or share card access?

Unlike original quite self explaining ESPWebDAV code this library is complete mess of callbacks and such stuff without a single line of comments or any usable documentation. All the "documentation" is regarding mounting webdav at other OS instead of library code documentation. Please help :(

nightgryphon avatar Aug 03 '21 21:08 nightgryphon

If this is too much a mess you can still use the other one. I use it with sd. Juste replace littlefs with sdfs. You can also use the other's repo examples. I'll try to provide an example but not before a few weeks. The callbacks are meant to share the port 80 with esp8266 webserver. They are not necessary for a start with SD.

d-a-v avatar Aug 04 '21 11:08 d-a-v

try the original SDMMC directory, I tested it on esp32cam ... //#include <SPIFFS.h> //#include <LITTLEFS.h> //pipi #include <SD_MMC.h> ... //FS& gfs = LITTLEFS; //#define FILESYSTEM LITTLEFS //#define FILESYSTEM SPIFFS FS& gfs = SD_MMC; #define FILESYSTEM SD_MMC

pipi61 avatar Sep 22 '21 20:09 pipi61

@pipi61

Hi, did you make any other changes than what you mentioned here? I'm trying to use SD_MMC also (1 bit mode) but getting a lot of compile errors. Should this work fairly easily or is it a bit involved to get going? Thanks for your help.

RPdenBoer avatar Nov 05 '22 12:11 RPdenBoer

I use only 4 bit mode

pipi61 avatar Nov 05 '22 23:11 pipi61