• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 3.0.0 Issues

Q&A Forum › Category: ESP32 › ESP32 3.0.0 Issues
0 Vote Up Vote Down
Donald Chapman asked 2 years ago

I’m a newbie to this forum. Please forgive if I have not submitted this properly.

Is there a list of changes and potential problems introduced with the 3.0.0 upgrade? Code I borrowed from Rui Santos’s book using ESP_NOW will no longer compile.

This line:
esp_now_register_recv_cb(OnDataRecv);

causes this error:
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]

I found the definition of esp_now_recv_info in esp_now.h:
typedef struct esp_now_recv_info {
uint8_t * src_addr; /**< Source address of ESPNOW packet */
uint8_t * des_addr; /**< Destination address of ESPNOW packet */
wifi_pkt_rx_ctrl_t * rx_ctrl; /**< Rx control info of ESPNOW packet */
} esp_now_recv_info_t;

I can figure out the src_addr and the des_addr, but I don't know what the Rx control info of ESPNOW packet is.

6 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Yes.
There were breaking changes from ESP32 version 2 to version 3.
Your issue is probably because of the update.
We didn’t have the time to update our codes yet.
 
While we haven’t fixed the codes, you can downgrade your board installation.
Or you can try to figure out what might have changed. More information here: https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.htm
 
Regards,
Sara

0 Vote Up Vote Down
Donald Chapman answered 2 years ago

Thanks Sara. Downgrading to 2.0.17 did indeed resolve the problems I was having. I appreciate the rapid response to my question and I appreciate the wealth of information in Rui’s books. I expect to purchase more in the future.

Don Chapman

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Great.
Thank you so much.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Jerry Michalec answered 3 weeks ago

Hi i am not sure which library must be changed to compile?
Thank you.
Jerry

0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

You don’t need to change anything.
 
I think all our codes are already updated.
You just need to make sure to have the latest version of the ESP32 core (Tools > Boards > Boards Manager > ESP32 and update to the latest version).
 
If you have issues with the codes, just let me know.
 
Regards,
Sara

0 Vote Up Vote Down
Jerry Michalec answered 3 weeks ago

Thank you very much 
jerry

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 Version 1.7 November 28, 2025
  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.