Code Monkey home page Code Monkey logo

Comments (11)

species5618 avatar species5618 commented on July 26, 2024

the latest verion of ESPAsyncWebServer support the ESP32 based proudcta
so it should be possible, i will investigate

from fsbrowserng.

JimPos avatar JimPos commented on July 26, 2024

Let me know if there is anything I can do to help

from fsbrowserng.

JimPos avatar JimPos commented on July 26, 2024

Accidently closed this.
Hope it can happen.

from fsbrowserng.

species5618 avatar species5618 commented on July 26, 2024

i have been working throught a few items, it seem the wifi API uses slightly different event handling names ,
esp32 library has difeerent time / ticker includes,
may take a while

from fsbrowserng.

JimPos avatar JimPos commented on July 26, 2024

I did get the ESPAsyncWebServer example working for ESP32 with only a few minor changes,
so hopefully it won't be too bad.

from fsbrowserng.

dadosch avatar dadosch commented on July 26, 2024

Are there any news?

from fsbrowserng.

gmag11 avatar gmag11 commented on July 26, 2024

Hello. No news from my side, I'm sorry.

from fsbrowserng.

JimPos avatar JimPos commented on July 26, 2024

@dadosch After considerable effort I actually got a version to compile and run on an ESP32.
However it might not be worth it.
I forced a default wifi configuration to eliminate some compiler errors in the wifi sections.
The NTPClientLib used is not compatible with ESP32 so I commented out all NTP or time references.
The OTA update sections have many incompatibilities, so I removed OTA.
There are some signicant differences between ESP8266 SPIFFS and ESP32 SPIFFS so
handleFileRead and handleFileList needed to be modified/rewritten.

At that point it could be compiled and run, but it was easier to start from scratch and
just expand the example in the ESPAsyncWebserver by @me-no-dev.

from fsbrowserng.

gmag11 avatar gmag11 commented on July 26, 2024

For your information. I'm working on new version of NTPClientLib. On https://github.com/gmag11/NtpClient/tree/pre2.5.0 you can find latest development. Now It is compatible with ESP8266, MKR1000 and ESP32.

from fsbrowserng.

gmag11 avatar gmag11 commented on July 26, 2024

@JimPos I agree. I developed this quite long ago, and finally never used it. I learned a lot about C++ in Arduino and ESP8266 but the code is too big. I'd like to turn this into a simpler web server, that publishes what is inside SPIFFS. But currently I occupied with other projects :-)

from fsbrowserng.

JimPos avatar JimPos commented on July 26, 2024

@gmag11 the new version of your NtpClientLib https://github.com/gmag11/NtpClient/tree/pre2.5.0 seems to work fine.
There is also now an ESP32 version of Ticker [https://github.com/bertmelis/Ticker-esp32] .
Using these allowed me to put back a lot of lines I had commented out.
WiFi events are still a problem, so I'm currently hard coding my ssid and password.
The "AP Button" code thinks I'm always pressing the button, so that's commented out too.
Many other problems with FileSystem/SPIFFS were solved by globally replacing '_fs->' with 'SPIFFS.'
OTA is still commented out.

Like you, I used your code to better understand how the Async Web server and FS Browser worked,
But I find it a little too large and non-generic as a library.

from fsbrowserng.

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.