Description
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
//Change the code below by your sketch
#include <Arduino.h>
#include <WebServer.h>
#include <WebServerSecure.h>
void setup() {
}
void loop() {
}
Debug Messages:
Arduino: 1.8.12 (Linux), Board: "NodeMCU-32S, 80MHz, 921600"
Multiple libraries were found for "WiFi.h"
AR488-ESP32-test2:73:33: fatal error: WebServerSecure.h: No such file or directory
Used: /home/johnc/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WiFi
compilation terminated.
Not used: /opt/arduino/libraries/WiFi
exit status 1
WebServerSecure.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Metadata
Metadata
Assignees
Type
Projects
Status