PlatformIO Community

Need esp8266/Arduino library 2.5.0-beta2


#1

Hi: I’m new to platformIO. I am trying to switch from the Arduino IDE to PlatformIO. My project needs the esp8266/Arduino library 2.5.0-beta2. Is that available in PlatformIO and how to I specify it in my platformio.ini file?

I tried:

[env:nodemcuv2]
platform = espressif8266@2.5.0
lib_extra_dirs = ~/Documents/Arduino/libraries
board = nodemcuv2
framework = arduino

and:

[env:nodemcuv2]
platform = espressif8266@2.5.0-beta2
lib_extra_dirs = ~/Documents/Arduino/libraries
board = nodemcuv2
framework = arduino

But in both cases when I try to build I get: Error: Could not find a version that satisfies the requirement ‘2.5.0’ for your system ‘windows_amd64’

I am using PlatformIO IDE with VSCode.

Thanks for the help.


#2

Since PlatformIO doesn’t support beta versions of any software it’s unlikely that your 2.5.0-beta2 version is available within PIO’s repository. Indeed, the latest available stable version is on https://github.com/platformio/platform-espressif8266/releases is 2.4.2 (which you would get by using PIOs release version, aka platform = espressif8266@1.8.0)


#3

You need https://docs.platformio.org/en/latest/platforms/espressif8266.html#using-arduino-framework-with-staging-version