ESP_NOW & esptool 4.6

Crater
Posts: 1
Joined: Tue Jun 04, 2024 12:38 pm

ESP_NOW & esptool 4.6

Postby Crater » Tue Jun 04, 2024 12:59 pm

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!

freemang
Posts: 4
Joined: Tue Mar 19, 2024 5:29 pm

Re: ESP_NOW & esptool 4.6

Postby freemang » Wed Jun 05, 2024 1:19 pm

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

Who is online

Users browsing this forum: No registered users and 78 guests