-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 library missing WebServerSecure ? #3902
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
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Could we have a reply to this please? |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
+1 for WebServerSecure |
Still waiting for a reply from the devs? |
why not use https://github.com/fhessel/esp32_https_server ? |
Tried that. I did spend a few days re-developing my code for this library and even contacted the author because I had some issues with it which he was able to help me resolve. However, this library is completely different, MUCH bigger in terms of code size and memory usage, much more complex, and seems VERY slow. Furthermore this library is not available for the ESP8266 so this means I would have to support two separate code bases for the ESP8266 and ESP32 when surely a compatible and consistent approach could have been implemented? |
hmm https://github.com/fhessel/esp32_https_server_compat do not use same syntax for API ? |
I had not noticed the esp32_https_server_compat library before. Thanks for pointing it out. This does add another layer and hence further overhead and the quoted inefficiency of POST handling and support for Basic authentication only might be issues, but still worth a test perhaps. I will have a look at it. |
Looking at https://github.com/fhessel/esp32_https_server_compat#state-of-development still some work need to be done so not sure it will meet your expectation anyway For what it worth, on my side, I have noticed arduino Esp32 core webserver is slower than esp8266 so I do not think https version will be faster - I did not tested esp32_https_server yet but got good feedback and it is actively maintained Another solution would be to use the native http / https from IDF - it is async and looks faster as it is used for camera but API is limited and need to be ported : https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/esp_http_server/esp_http_server.h / https://github.com/espressif/arduino-esp32/tree/master/tools/sdk/include/esp_https_server |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
I think this should stay opened |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
I think they are probably expecting us to use the incompatible fhessel library but it would be helpful to hear from the devs and have this confirmed please. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Ok, looks like we are not going to get any reply to this then. |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
+1 for WebServerSecure |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
let's keep this open |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
+1 for WebServerSecure |
Let's keep this open |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
Hello @Twilight-Logic , sorry for late reply. Are you able to test your issue on development version 2.0.3-RC1 to check if this is still valid? You can take a look on Docs where is explained how to choose development release version in Arduino IDE. |
Thank you for your response. I have tried both versions 1.8.19 and 2.0.0 rc5 of the IDE:
I am not really sure how the version of the IDE would have a bearing on a missing component of a library though? As might be expected, both versions here report the same problem. |
Thanks, we will investigate this further. |
Let's keep this feature request open. |
has this been solved yet ? |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Hardware:
Board: ESP32 Devkit V1, NodeMCU-32s compatible
ESP32 WROOM-32 WiFi module
Core Installation version: 1.0.4
IDE name: Arduino IDE 1.8.10, 1.8.12
Flash Frequency: not sure
PSRAM enabled: not sure
Upload Speed: 115200
Computer OS: Windows 7, Linux Mint 19.2
Description:
On the ESP32, WebServer corresponds to the ESP8266WebServer module. However, I am puzzled by the fact that when I type in #include <WebServerSecure.h> it turns bold red as though it was a recognized module, but I then get a compiler error telling me:
WebServerSecure.h: No such file or directory
Investigating further, the corresponding paths in each library were compared:
~/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WebServer
and
~/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer
Among other things, these paths contains a file called keywords.txt. The ESP32 version contains as follows:
Code: [Select]
#######################################
Datatypes (KEYWORD1)
#######################################
WebServer KEYWORD1
WebServerSecure KEYWORD1
HTTPMethod KEYWORD1
So clearly 'WebServerSecure' is present as a defined keyword. However, although the ESP8266 path contains ESP8266WebServerSecure.h the ESP32 path does NOT contain a corresponding WebServerSecure.h as perhaps might be expected. Furthermore, the path ~/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WiFi/src contains WiFiServerSecure.h, whereas the equivalent ESP32 library does not.
Having had a look at the ESP32 Git repository I discover the same.
Can anyone shed any light on this? Is this a file omission from the library, or was the secure version never implemented?
Sketch:
n/a
Debug Messages:
The text was updated successfully, but these errors were encountered: