Espressif 8266 development platform 2.3.0

We are pleased to announce the next release v2.3.0 of Espressif 8266 development platform.

39

What’s New

See Espressif8266 Release Notes for details.

Documentation

:arrow_right: Espressif 8266 — PlatformIO latest documentation

Examples

:arrow_right: platform-espressif8266/examples at develop · platformio/platform-espressif8266 · GitHub

Update

  • PlatformIO IDE – please navigate to PIO Home > Platforms > Updates
  • PlatformIO Core – please run a next CLI command $ pio update

Regards,
The PlatformIO Team

And just when you think you’ve caught up with the espressif8266 arduino releases… they go and release 2.6.2 10 hours later! :laughing:

Look forward to trying out 2.6.x … seems like there’s some good stuff happening there.

2.3.1 is out! :slight_smile:

Well snap! :smiley:

Here’s hoping it lasts a little longer! :laughing: Thanks Ivan :wink:

2 Likes

Tried 2.3.0 and 2.3.1 but it doesn’t compile, problems with WiFiClientSecure

2.2.3 and earlier compile as it should but 2.3.0 and 2.3.1 complain about:

error: ‘using ESP8266WebServerSecure = class esp8266webserver::ESP8266WebServerTemplateBearSSL::WiFiServerSecure’ has no member named ‘setBufferSizes’

‘using ESP8266WebServerSecure = class esp8266webserver::ESP8266WebServerTemplateBearSSL::WiFiServerSecure’ has no member named ‘setRSACert’

Should I change something else? Again, it compiles under 2.2.3 and lower

framework = arduino
platform = espressif8266@2.3.1 // 2.2.3 = ok
board = d1_mini

Without seeing a MVCE / reproducible code example it’s hard to tell. Do the examples provided by the esp8266 Arduino board support package work for you? As you can see, with platform = espressif8266@2.3.1 both of these example sketches work fine.

Example code using setRSACert.

Processing d1_mini (framework: arduino; platform: espressif8266@2.3.1; board: d1_mini)
--------------------------------------------------------------------------------------------------------------------------------------------------- 
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 2.3.1 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 2.40802.191122 (4.8.2), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20800.0 (2.8.0), framework-arduinoespressif8266 2.20602.191128 (2.6.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266WebServer> 1.0
|   |-- <ESP8266WiFi> 1.0
Building in release mode
Retrieving maximum program size .pio\build\d1_mini\firmware.elf
Checking size .pio\build\d1_mini\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  34.5% (used 28276 bytes from 81920 bytes)
Flash: [====      ]  42.0% (used 438788 bytes from 1044464 bytes)
========================================================== [SUCCESS] Took 12.32 seconds ==========================================================

Example using setBufferSizes

Processing d1_mini (framework: arduino; platform: espressif8266@2.3.1; board: d1_mini)
--------------------------------------------------------------------------------------------------------------------------------------------------- 
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 2.3.1 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 2.40802.191122 (4.8.2), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20800.0 (2.8.0), framework-arduinoespressif8266 2.20602.191128 (2.6.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266WiFi> 1.0
Building in release mode
Retrieving maximum program size .pio\build\d1_mini\firmware.elf
Checking size .pio\build\d1_mini\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  34.1% (used 27928 bytes from 81920 bytes)
Flash: [====      ]  36.5% (used 381424 bytes from 1044464 bytes)
========================================================== [SUCCESS] Took 11.47 seconds ==========================================================

Thanks, I see there have been some changes:

server.setBufferSizes
server.setRSACert

have become

server.getServer().setBufferSizes
server.getServer().setRSACert

Now it is compiling

edit… after compiling and testing:

I gained almost 2kb free heap with the new 2.3.1 Very good !!!

Regards,
Henk

1 Like

Yeah, I saw there was mention of…

Changes since 2.4.2 (to 2.5.0)
Breaking change
SSL/TLS API (BearSSL)

in the release notes, but that would mean espressif8266@>2.0.0 would have those changes… so I don’t know what was the cause of that change to the API.

Anyway, obviously it’s working for you now! :slight_smile: