What ESP-IDF version does PlatformIO with Arduino use
On Dec 17th 2021, PlatformIO with this default platformio.ini
config (with platformio-espressif32
v3.4.0
):
[env:ESP32]
platform = espressif32
board = esp32dev
framework = arduino
uses ESP-IDF version 3.3.5
You can find this out yourself by printing all preprocessor flags as described in our post on How to print all preprocessor flags in PlatformIO and then looking for ESP_IDF_VERSION_...
definitions using:
grep ESP_IDF_VERSION .pio/build/ESP32/src/main.cpp.o
which currently results in
#define ESP_IDF_VERSION_MINOR 3
#define ESP_IDF_VERSION_MAJOR 3
#define ESP_IDF_VERSION_PATCH 5