Page 1 of 1

ESP_NOW & esptool 4.6

Posted: Tue Jun 04, 2024 12:59 pm
by Crater
Compiling any ESPNOW code with new compiler esptool 4.6 returns the error below with all examples, new & old code, all of which compile OK with esptool 5.4.1

Compilation error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]

All fail on line in setup : esp_now_register_recv_cb(OnDataRecv);

How do I revert back to esptool 5.4.1 while this is corrected? Putting 4.6 in the rubbish bin didn't work, presumably because its addressed somewhere specifically!

Re: ESP_NOW & esptool 4.6

Posted: Wed Jun 05, 2024 1:19 pm
by freemang
Hello

After updating to Arduino core 3.0, the ESP-IDF has been updated to 5.1.4
means that ESP-NOW procedure also has been updated.
See documentation:
https://docs.espressif.com/projects/ard ... spnow.html
You can also check the examples in Arduino IDE.

You can go back by selecting different version in your board manager