-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 webserver #425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ESP8266WebServer works a treat :) |
@PhilColbert Translate to English please... :) Is this a vote for the ESP8266WebServer or have you got something that has worked? |
Created a PR for this: #430 |
This SimpleWiFiServer is crazy confusing. What's kinda gypsy magic is going on there?
Will there be more adequate implementation of WebServer on EPS32? For now using @salqadri fork. |
I have copied and renamed the library ESP8266WebServer to ESP32WebServer. Only a very view adaptations were needed. So for those who need this right now and can't wait, this might be an easy way to go. But as mentioned by @me-no-dev in issue #430, it makes non sense to have the same code in two places. I strongly agree on that! |
http://www.fisch.lu/junk/ESP32-WebServer.zip Copy the library to the "libraries" folder of you expressif/esp32 installation folder. |
Downloaded the ESP32-WebServer.zip file but the example WebServer examples reference ESP8266 files and won't compile.
|
I believe got the necessary correction needed.
|
Yes, you are right. I forgot yesterday to update the examples ... |
This project roadmap may be helpful. |
I've just downladed .zip file posted by fesch Copied WebServer folder to ~/Arduino/hardware/espressif/esp32/libraries open arduino ide 1.8 open examples -> Esp32WebServer -> SimpleWebServer compile, receive multiple errors , as arduino-1.8.0/libraries/Ethernet/src/Dhcp.h:47:19: error: expected identifier before string constant Arduino/hardware/espressif/esp32/tools/sdk/include/lwip/apps/dhcpserver.h:58:5: note: in expansion of macro 'HOST_NAME' please, any advise ? thanks |
@gusantor If you're just looking to use wifi, comment out these lines: // #include <Ethernet.h> and below that, comment out: Add these for your network after the includes... Add these to setup after Serial.begin(); WiFi.begin(ssid, password); // Wait for connection |
Thank you @markyad , it works great |
http://www.fisch.lu/junk/ESP32-WebServer.zip link isn't working. I could see the webserver is still under development, when will it be ready, got projects in pipeline where I would replace ESP8266 with ESP32. |
The link should still work ... |
@fesch thanks !!! webserver.send(200, "text/html", sHTML); works fine !! HTTPUpload& upload = webserver.upload(); works fine !! Download from the SPIFFS does not work very well. File downfile = SPIFFS.open(webserver.arg("filename"),"r"); i think the method webserver.streamFile() is the problem. File pageFile = SPIFFS.open("/logo.gif"); |
Not even html or simple text file won't work for me (using serveStatic function), since WiFiClient::write(Stream&) is not implemented. |
webserver.streamFile in this lib: http://www.fisch.lu/junk/ESP32-WebServer.zip |
http://www.fisch.lu/junk/ESP32-WebServer.zip not wifi, but for wired ethernet ... |
The WebServer_tng streamfile does also not work for me. |
root CA upload to SPIFF through HTTPS not successfully. in WebServer::_parseForm() of parsing.cpp debug information as below Parse Form: Boundary: ----WebKitFormBoundaryx8LmZvvONNsnhaKX Length: 1963 |
@ sunepedersen it is essential, that you copy the library (WebServer_tng) in directory: for example: D:\arduino_1_8_5_ESP32\hardware\espressif\esp32\libraries |
I actually ran it on Platform.IO, and it compiles just fine! Just not serving any files. |
Please update to last code, it's now supporting webserver =) |
Has anyone implemented a decent web server yet like the esp8266 webserver solution.
The text was updated successfully, but these errors were encountered: