Skip to content

arduino-esp32/esp-idf and v1.0/v2.0 version retrieval differences #5536

Closed
@drws

Description

@drws

This is probably more of a feature request than a bug report, concerning both v1.0 and v2.0 branches.

Esp.h provides a runtime function getSdkVersion(), a wrapper for esp-idf's esp_get_idf_version(), which reads version data from esp_idf_version.h containing ESP_IDF_VERSION_* macros.

A similar story is arduino-esp32 version, the esp_arduino_version.h providing ESP_ARDUINO_VERSION_* macros. It has been added only recently to v2.0 branch only. Firstly, I propose esp_arduino_version.h is also ported to v1.0 codebase so the two major Arduino SDK versions are compatible in such basic regard.

However, the arduino-esp32 does not contain getSdkVersion()-analogue function containing its version string, available at runtime. A getSdk2Version() if you will. Second proposal of this issue is that such function is added to v2.0 and v1.0 branches.

This would also make arduino-esp32 version as accessible as esp-idf one is, without needing to include esp_arduino_version.h. Such basic debugging information should probably be most easily accessible.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions