I’m trying to build Homie-esp8266 on Windows. This worked before the upgrade to pio 4.0.
As a minimal setup, in a new project I have:
platformio.ini:
[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
build_flags = -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
lib_deps = https://github.com/homieiot/homie-esp8266.git
This is what I get on Windows:
> pio run -v
Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino; build_flags: -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY; lib_deps: https://github.com/homieiot/homie-esp8266.git; monitor_speed: 115200)
---------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 2.2.2 > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 2.40802.190218 (4.8.2), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20600.0 (2.6.0), framework-arduinoespressif8266 2.20502.0 (2.5.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 31 compatible libraries
Scanning dependencies...
Warning: Ignored `ArduinoJson` dependency for `Homie` library
Warning: Ignored `AsyncMqttClient` dependency for `Homie` library
Warning: Ignored `Bounce2` dependency for `Homie` library
Warning: Ignored `ESP Async WebServer` dependency for `Homie` library
Dependency Graph
|-- <Homie> 2.0.0 #edb5d62 [git+https://github.com/homieiot/homie-esp8266.git] (C:\Users\David\Documents\PlatformIO\Projects\HomieStable\.pio\libdeps\nodemcuv2\Homie@src-e4c79fb15b190bf0db9479b0f4561658)
I’ve truncated this, but it goes on to fail, unable to find AsyncMqttClient.h,
which is reasonable
I have tried exactly the same on Ubuntu, and it builds and links fine.
I’m using VS Code, Platformio Home 2.2.0 Core 4.0.2
Any help would be appreciated.