I’ve tried doing my homework by reading relevant documentation Redirecting...
and reading many other posts where people struggling with include paths for their external libraries. Clearly Im not doing something correctly. After desperately trying to use existing libraries from the Arduino IDE, i tried adding libs using library manager. Still no joy.
Thank you very much for your answer and I apologize for delay in my response. I am confused about the framework because before I used PlatformIO and VSCode, I was building the same code in Arduino IDE.
The hardware is ESP32S2 but of course the libraries came from Arduino. Can I use them?
p.s. Yes I tried to just running the build and it get fatal error: WiFi.h: No such file or directory
I just realized that you are using an ESP32-S2 board and that the Arduino version for it still hasn’t reached final state. It should still be possible to get it working with PlatformIO but it might take quite some fiddling with the platformio.ini file.