PlatformIO Community

PlatformIo ESP8266Wifi.h Using Problem

Hello,

While coding with PlatformIo, the ESP8266Wifi.h library gives an error while compiling. It may cause problem.

#include <Arduino.h>
#include <ESP8266Wifi.h>


void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [Redirecting...](https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html)
PLATFORM: Espressif 8266 (3.2.0) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

* framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
* tool-esptool @ 1.413.0 (4.13)
* tool-esptoolpy @ 1.30000.201119 (3.0.0)
* toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> [Library Dependency Finder (LDF) — PlatformIO latest documentation](https://bit.ly/configure-pio-ldf)
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP Async WebServer @ 1.2.3
| |-- ESPAsyncTCP @ 1.2.2
| |-- Hash @ 1.0
| |-- ESP8266WiFi @ 1.0
|-- ESP8266WiFi @ 1.0
Building in release mode
Compiling .pio\build\nodemcuv2\src\main.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiScan.cpp.o
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266Wifi.h:40,
from src\main.cpp:2:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiSTA-WPS.cpp:26:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiScan.cpp:25:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266Wifi.cpp:25:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiMulti.h:30,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiMulti.cpp:27:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp:29:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp:25:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFi.h:40,
from C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiAP.cpp:25:
C:\Users\asg5.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\WiFiServer.h:68:26: error: 'esp8266webserver' does not name a type
68 | using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate;
| ^~~~~~~~~~~~~~~~
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFi.cpp.o] Error 1
*** [.pio\build\nodemcuv2\src\main.cpp.o] Error 1
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiAP.cpp.o] Error 1
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o] Error 1
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiScan.cpp.o] Error 1
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiSTA.cpp.o] Error 1
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiMulti.cpp.o] Error 1
*** [.pio\build\nodemcuv2\libe6d\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o] Error 1
============================================================================================ [FAILED] Took 8.33 seconds ============================================================================================"C:\Users\asg5.platformio\penv\Scripts\platformio.exe 'run'" terminal işlemi şu çıkış koduyla sonlandırıldı: 1.

Terminal, görevler tarafından yeniden kullanılacak; kapatmak için bir tuşa basın.

I cannot reproduce this issue with the platformio.ini

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps =
   me-no-dev/ESP Async WebServer@^1.2.3

and the same source code as you.

What’s your platformio.ini?

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (3.2.0) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
 - tool-esptool @ 1.413.0 (4.13)
 - tool-esptoolpy @ 1.30000.201119 (3.0.0)
 - toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP Async WebServer @ 1.2.3
|   |-- ESPAsyncTCP @ 1.2.2
|   |-- Hash @ 1.0
|   |-- ESP8266WiFi @ 1.0
|-- ESP8266WiFi @ 1.0
Building in release mode
Compiling .pio\build\nodemcuv2\src\main.cpp.o
Generating LD script .pio\build\nodemcuv2\ld\local.eagle.app.v6.common.ld
Compiling .pio\build\nodemcuv2\lib63d\ESPAsyncTCP\AsyncPrinter.cpp.o
Compiling .pio\build\nodemcuv2\lib63d\ESPAsyncTCP\ESPAsyncTCP.cpp.o
Compiling .pio\build\nodemcuv2\lib63d\ESPAsyncTCP\ESPAsyncTCPbuffer.cpp.o
Compiling .pio\build\nodemcuv2\lib63d\ESPAsyncTCP\SyncClient.cpp.o
Compiling .pio\build\nodemcuv2\lib63d\ESPAsyncTCP\tcp_axtls.c.o
Compiling .pio\build\nodemcuv2\libc90\Hash\Hash.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\BearSSLHelpers.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\CertStoreBearSSL.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiGratuitous.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\WiFiClient.cpp.o
Archiving .pio\build\nodemcuv2\libc90\libHash.a
Indexing .pio\build\nodemcuv2\libc90\libHash.a
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\WiFiClientSecureBearSSL.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\WiFiServer.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\WiFiServerSecureBearSSL.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\WiFiUdp.cpp.o
Compiling .pio\build\nodemcuv2\libe3f\ESP8266WiFi\enable_wifi_at_boot_time.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\AsyncEventSource.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\AsyncWebSocket.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\SPIFFSEditor.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\WebAuthentication.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\WebHandlers.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\WebRequest.cpp.o
Archiving .pio\build\nodemcuv2\lib63d\libESPAsyncTCP.a
Indexing .pio\build\nodemcuv2\lib63d\libESPAsyncTCP.a
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\WebResponses.cpp.o
Compiling .pio\build\nodemcuv2\libd93\ESP Async WebServer\WebServer.cpp.o
Archiving .pio\build\nodemcuv2\libFrameworkArduinoVariant.a
Indexing .pio\build\nodemcuv2\libFrameworkArduinoVariant.a
Compiling .pio\build\nodemcuv2\FrameworkArduino\Crypto.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Esp-frag.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Esp-version.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Esp.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\FS.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\FSnoop.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\IPAddress.cpp.o
In file included from .pio\libdeps\nodemcuv2\ESP Async WebServer\src\SPIFFSEditor.cpp:1:
.pio\libdeps\nodemcuv2\ESP Async WebServer\src\SPIFFSEditor.h:16:101: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   16 |     SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
      |                                                                                                     ^~~~~~
In file included from .pio\libdeps\nodemcuv2\ESP Async WebServer\src/ESPAsyncWebServer.h:27,
                 from .pio\libdeps\nodemcuv2\ESP Async WebServer\src\SPIFFSEditor.h:3,
                 from .pio\libdeps\nodemcuv2\ESP Async WebServer\src\SPIFFSEditor.cpp:1:
C:\Users\Max\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
Compiling .pio\build\nodemcuv2\FrameworkArduino\LwipDhcpServer-NonOS.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\LwipDhcpServer.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\LwipIntf.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\LwipIntfCB.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\MD5Builder.cpp.o
Archiving .pio\build\nodemcuv2\libe3f\libESP8266WiFi.a
Indexing .pio\build\nodemcuv2\libe3f\libESP8266WiFi.a
Compiling .pio\build\nodemcuv2\FrameworkArduino\Print.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Schedule.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\StackThunk.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\StreamSend.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\TypeConversion.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\Updater.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\WString.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\abi.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\aes_unwrap.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\base64.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\cbuf.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\cont.S.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\cont_util.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_app_entry_noextra4k.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_eboot_command.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_features.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_flash_quirks.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_flash_utils.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_i2s.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_main.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_non32xfer.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_noniso.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_phy.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_postmortem.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_si2c.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_sigma_delta.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_spi_utils.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_timer.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_vm.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_waveform_phase.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_waveform_pwm.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_wiring.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_wiring_analog.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_wiring_digital.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_wiring_pulse.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_wiring_pwm.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\core_esp8266_wiring_shift.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\crc32.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\debug.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\exc-c-wrapper-handler.S.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\exc-sethandler.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\flash_hal.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\gdb_hooks.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\heap.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\hwdt_app_entry.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\libb64\cdecode.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\libb64\cencode.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\libc_replacements.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\mmu_iram.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\reboot_uart_dwnld.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\spiffs\spiffs_cache.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\spiffs\spiffs_check.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\spiffs\spiffs_gc.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\spiffs\spiffs_hydrogen.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\spiffs\spiffs_nucleus.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\spiffs_api.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\sqrt32.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\stdlib_noniso.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\time.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\uart.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\umm_malloc\umm_info.c.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\umm_malloc\umm_integrity.c.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\umm_malloc\umm_local.c.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\umm_malloc\umm_malloc.cpp.o
Compiling .pio\build\nodemcuv2\FrameworkArduino\umm_malloc\umm_poison.c.o
Archiving .pio\build\nodemcuv2\libFrameworkArduino.a
Indexing .pio\build\nodemcuv2\libFrameworkArduino.a
Archiving .pio\build\nodemcuv2\libd93\libESP Async WebServer.a
Indexing .pio\build\nodemcuv2\libd93\libESP Async WebServer.a
Linking .pio\build\nodemcuv2\firmware.elf
Retrieving maximum program size .pio\build\nodemcuv2\firmware.elf
Checking size .pio\build\nodemcuv2\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  34.0% (used 27892 bytes from 81920 bytes)
Flash: [==        ]  24.9% (used 260093 bytes from 1044464 bytes)
Building .pio\build\nodemcuv2\firmware.bin
Creating BIN file ".pio\build\nodemcuv2\firmware.bin" using "C:\Users\Max\.platformio\packages\framework-arduinoespressif8266\bootloaders\eboot\eboot.elf" and ".pio\build\nodemcuv2\firmware.elf"
===== [SUCCESS] Took 29.55 seconds =====

Why does it throw an error when adding #include <ESP8266Wifi.h> I’ve searched everywhere and can’t find it.

[env:nodemcuv2]

platform = espressif8266

board = nodemcuv2

framework = arduino

#lib_deps = me-no-dev/ESPAsyncTCP@^1.2.2

lib_deps =

ESP Async WebServer

ESP8266WiFi

Please remove the folders

  • C:\Users\asg5.platformio\packages\framework-arduinoespressif8266
  • C:\Users\asg5.platformio\lib\*

and retry building.

I uninstalled and reinstalled the IDE via Visual Studio Code. I deleted the folders in the directory you mentioned. Probably no problem. If so, I’ll post here again. Thank you. For quick turnaround and support. You’re welcome. Warm greetings from Turkiye…