PlatformIO Community

Library compiling issues/question


#1

Hi - Im using PlatformIO within VSC - all up to date versions.
I have Espressif32 package installed and installed relevant libraries. I don’t understand why the compiler does not find the file HTTPClient.h when its clearly installed as part of the ESP32 package – I thought the compiler would see these .h files automatically. I’m a a little confused. Screenshots attached to help.
Any help would be appreciated.

As you can see the HTTPClient library is within the ESP32 package:


#2

just an update: I managed to fix the issue by explicitly adding the platform libraries in my platformio.ini file as per below. I’m surprised the compiler to does find these automatically to be honest. I’d like to understand why the compiler does not do this for my own education.