d-a-v / ESPWebDAV

macOS, linux, windows: Natively sharing files - port 80 is shared
Other
40 stars 9 forks source link

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

Open nightgryphon opened 3 years ago

nightgryphon commented 3 years ago

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 :(

d-a-v commented 3 years ago

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.

pipi61 commented 2 years ago

try the original SDMMC directory, I tested it on esp32cam ... //#include //#include //pipi

include

... //FS& gfs = LITTLEFS; //#define FILESYSTEM LITTLEFS //#define FILESYSTEM SPIFFS FS& gfs = SD_MMC;

define FILESYSTEM SD_MMC

RPdenBoer commented 1 year ago

@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.

pipi61 commented 1 year ago

I use only 4 bit mode