Default libraries from board not installed in the VS-code environment

After using Arduino IDE 2.x for a while, I wanted IntelliSense in order to write code more efficiently, and moved to the VS-code extension for Arduino. I have a problem thought: I'm using a ESP32 in order to send data to a RaspberryPi. In order for the ESP32 to connect to the Wifi, I need the Wifi.h library. This is usually installed by default when choosing a specific board on the arduino IDE settings. With the VS-code extension this doesn't seem to be the case. I cannot find the corresponding library as a .zip file on the internet, since Arduino seems to assume it is installed automatically through their IDE when choosing the board.

I installed Platform IO, and actually when choosing the correct board I got the needed libraries. I included the path of these libraries to the VS code extension for Arduino, however now I seem to lack some dependecies, such as "server.h" (for WiFi.h) and "esp32-hal.h" (for Wire.h).

Is there anything more I can do? I could move to Platform io, but it would be nice to understand what is going wrong since the VS-code extension seems relatively simple, neat and overall nice to use.

copy the libraries from the Arduino IDE installation
C:\Users\juraj\AppData\Local\Arduino15\packages\esp32\hardware\esp32\

or platformio installation or

Copied libraries from all three sources, affirms that WiFi.h and Wire.h exist, however apparently the dependencies server.h and esp32-hal.h are yet to be found.

Server.h and esp32-hal.h are in the in the core, not in a library

Thanks, fixed many of the problems. Apparently Wired.h needs now a package called soc/soc_caps.h. After trying to verify the code it also gave an error about "Multiple libraries were found for "WiFi.h" therefore not being able to compile.

Seems new leaks are found when the old ones are covered.

UPDATE 21.02.2024

Emigrated back to arduino IDE, maybe trying the extension later with a new board.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.