I created an MQTT library and when optimizing the code, this error popped up:
fatal error: WiFiClientSecure.h: No such file or directory
I ran compilation tests using the platformio ci
command for esp8266 and esp32. All examples except one are building without problems. Only on ESP32 on the example where the secure variant is not used, it fails.
See deduplicate code · bertmelis/espMqttClient@6956fd5 (github.com)
I don’t immediately see what I’ve done wrong. The example used to compile fine and the dependencies have not changed, only reshuffled between files.