I am trying to use the ESP8266WiFi library, but it is not found. Meanwhile I believe trough further reading that it might be included in PlatformIO. However when I try to compile my sample project I get an error:
Compiling .pioenvs/esp12e/liba7d/WifiManager_ID567/WiFiManager.cpp.o
In file included from .piolibdeps/WifiManager_ID567/WiFiManager.cpp:13:0:
.piolibdeps/WifiManager_ID567/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory
Looking for ESP8266WiFi.h dependency? Check our library registry!
ESP8266WiFi is a core library provided with the ESP8266 Arduino board support core.
How are you including it? Or is it being automatically included by the wifi manager? Can you share the rest of your code, or the minimum code necessary to reproduce the issue? I suspect it is something else triggering it, and ESP8266WiFi is being blamed. i.e. The board value is wrong… it should be lower case esp12e as it’s case sensitive (on linux, anyway).
The lib_deps entry tells platformio what external library dependencies it needs to download… not the libraries that are included with a platform/core, or private ones in your project.
In your case, you want the WifiManager external library (dependency), so you specify that via the lib_deps line, and it will go and fetch that if it doesn’t already exist. And will keep it up to date if you run the ‘update libraries’ command (or is it libraries update?) on the project.