Code Monkey home page Code Monkey logo

Comments (6)

greiman avatar greiman commented on August 17, 2024

I don' know of any use of SdFat with ESPAsyncWebserver.

I avoid using ESP32/ESP8266 because SdFat often conflicts with the ESP file system.

from sdfat.

JoergTiedemann avatar JoergTiedemann commented on August 17, 2024

I found a wrapper, will post it next weekend
Investors to use the lib on Esp32 because of firebase library by @mobizt requires it because of your library has adjustable speed for spi interface

from sdfat.

VeloSteve avatar VeloSteve commented on August 17, 2024

Any chance you can post that wrapper? SD.h is unreliable for me (on Arduino Nano ESP32), but SdFat is stable, so I need to use SdFat.

from sdfat.

JoergTiedemann avatar JoergTiedemann commented on August 17, 2024

Hi gimme a chance this weekend
I will try to search the wrapper and post it, if you didn't got any post from me remember me latest this Sunday

from sdfat.

JoergTiedemann avatar JoergTiedemann commented on August 17, 2024

sd_fat32_fs_wrapper.zip
In the attachment you will find the wrapper
just include the file

I use it als following

SdFat sd_fat_fs;
fs::FS sdfilesys = fs::FS(fs::FSImplPtr(new SdFat32FSImpl(sd_fat_fs)));

If you want to use it with ESP Async Webserver in a response at server.on...
i.g. to respond a picture from an sd card
String picturefilene ="picture.jpg";
request->send(sdfilesys,picturefilename, "image/jpg", false);
hope this helps

from sdfat.

VeloSteve avatar VeloSteve commented on August 17, 2024

Thank you! I missed your post for a few days and came up with the workaround of replacing send(SD, filename . . . ) calls with sendChunked and my own simple function which gets data from the file using SdFat. Your wrapper is probably nicer, so I'll try it out.

from sdfat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.