You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C:\RH\Sources\RH\RemoteHomeArduinoSketches\WiFi_ESP32\libraries\esp32_https_server_compat\src\ESPWebServer.cpp:3:39: fatal error: HTTPMultipartBodyParser.hpp: No such file or directory #4
C:\RH\Sources\RH\RemoteHomeArduinoSketches\WiFi_ESP32\libraries\esp32_https_server_compat\src\ESPWebServer.cpp:3:39: fatal error: HTTPMultipartBodyParser.hpp: No such file or directory
Do you have the underlying library ESP32 HTTPS Server (without the "compat") installed? This library is just a thin layer on top of the other, which makes it more compatible with the existing WebServer interface. Depending on how you installed this library, the Arduino IDE may not automatically download the other library.
Please check the following:
Go to Sketch → Include Library → Manage Libraries...
Search for esp32_https_server
You should see two libraries in the list: ESP32 HTTPS Server and esp32_https_server_compat, and both have to be installed. For the ESP32 HTTPS Server, it has to be version 1.0.0.
I see, thanks for the answer. Interesting, but you are probably right. Yes, I have of course your esp32 https server, but I have it in the libraries folder, which is on the same level as the sketches. This normally loads the other libraries correctly, but probably not in the case of HTTPServer.hpp...
Digest-based authentication is not implemented as it's also missing in the underlying library.
The client() function is not implemented, indeed. The main issue with that is that esp32_https_server does not make use of WiFiClient but talks directly to the FreeRTOS network stack (we need to do that to handle connection and TLS state better). I'm not sure if I'm able to construct a WiFiClient from there. So this library is still no (and most likely will never be) 100%-drop-in-replacement but a way to make it easier to switch between both web server implementations.
But maybe one can address this from a functional point of view: What is your goal with getting the WiFiClient? Do you need the client's address?
Activity
fhessel commentedon Oct 27, 2020
Do you have the underlying library ESP32 HTTPS Server (without the "compat") installed? This library is just a thin layer on top of the other, which makes it more compatible with the existing WebServer interface. Depending on how you installed this library, the Arduino IDE may not automatically download the other library.
Please check the following:
esp32_https_serverIf that doesn't help, please let me know.
robertgregor commentedon Oct 29, 2020
I see, thanks for the answer. Interesting, but you are probably right. Yes, I have of course your esp32 https server, but I have it in the libraries folder, which is on the same level as the sketches. This normally loads the other libraries correctly, but probably not in the case of HTTPServer.hpp...
robertgregor commentedon Oct 29, 2020
OK, I have included
#include <ESPWebServer.hpp>
And did ESPWebServer server;
But seems, it is not fully compatible with the original WebServer i.e. I have error here:
Sensor:278:37: error: 'class ESPWebServer' has no member named 'client'
C:\RH\Sources\RH\RemoteHomeArduinoSketches\WiFi_ESP32\Sensor\Sensor.ino: In lambda function:
Sensor:296:70: error: 'DIGEST_AUTH' was not declared in this scope
fhessel commentedon Oct 29, 2020
Digest-based authentication is not implemented as it's also missing in the underlying library.
The
client()function is not implemented, indeed. The main issue with that is thatesp32_https_serverdoes not make use ofWiFiClientbut talks directly to the FreeRTOS network stack (we need to do that to handle connection and TLS state better). I'm not sure if I'm able to construct aWiFiClientfrom there. So this library is still no (and most likely will never be) 100%-drop-in-replacement but a way to make it easier to switch between both web server implementations.But maybe one can address this from a functional point of view: What is your goal with getting the
WiFiClient? Do you need the client's address?robertgregor commentedon Oct 30, 2020
Hi, my goal was to use your lirary together with the ESP camera library, which use WiFiClient...
robertgregor commentedon Oct 30, 2020
Thanks for the feedback anyway...
robertgregor commentedon Nov 1, 2020
Thanks