Espressif32_stage and arduino: WiFiClientSecure missing

Hi there,

After installing espressif32_stage (because the fairly new HTTPClient library was missing), HTTPClient now throws the following compile error:

src/HTTPClient.cpp:30:30: fatal error: WiFiClientSecure.h: No such 
file or directory

Why this happens is beyond me as WiFiClientSecure is, just like HTTPClient, an included library and has been that way for six months (according to the git history).

My .ini:

platform = espressif32_stage
framework = arduino
board = nodemcu-32s
lib_deps = ArduinoJson
           DHT sensor library

Any ideas?

A workaround for this is symlinking the header files in the WiFiClientSecure folder to the HTTPClient folder in the platform directory. It looks like there’s a problem with built-in libraries depending on other built-in libraries.

Just add to main project file #include <WiFiClientSecure.h> before HTTPClient

1 Like