Hello everyone
uint32_t ver = 0;
esp_err_t err = esp_now_get_version(&ver);
if (err == ESP_OK)
{
Serial.printf(“ESP-NOW : 0x%X\n”, ver);
}
Why is it still v1 version? Shouldn’t it be v2 version
platform = espressif32 @ 6.10.0 gives you Arduino 2.0.17 based on ESP-IDF 4.4.7.
ESP-NOW 2 was introcued with ESP-IDF 5.4
Due to the lack of further development of the Espressif 32 Arduino Core for PlatformIO, the pioarduino fork was created.
If you want to use newer Arduino 3.x based on ESP-IDF 5.x you have to use pioarduino’s platform-espressif32.
Check this list for available espressif32 platform versions.
hi sivar2311
How to use platform-espressif32 and is platform another code plugin?
No! All you have to change is the platform setting in the platformio.ini! See the version list!
For example Espressif Arduino 3.3.0:
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.30/platform-espressif32.zip
Thank you very much. I have already succeeded. Debugging and outputting ESP-NOW2
; platform = espressif32 @ 6.12.0
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
But I don’t want to put the URL here, what name should I use
Platform=platform-espressif32 has an error message
You have to use a pioarduino url.
If you only use espressif32 the version installed on your computer with the highest version number will be used.
Understood, thank you very much