"nvs_find_key" not in the "nvs.h" for arduino_nano_esp32

I’m developing on an arduino esp32 nano board and my platformio.ini file contains this:

[env:arduino_nano_esp32]
platform = espressif32 @ 6.12.0
board = arduino_nano_esp32
framework = arduino

I’m wondering why “arduino_nano_esp32” board contains an old version of “nvs.h” without the “nvs_find_key” method definition, but in the framework-espidf the “nvs.h” file is newer and contains the that method.

The reason ist platform = espressif32 @ 6.12.0 which will result in Espressif Arduino Framework 2.0.17 based on ESP-IDF 4.4.7.

If you want a newer Arduino Framework version, use pioarduino.

See this list platform-espressif32 versions · GitHub