• 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 1 year 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.

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year 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 1 year 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 1 year 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

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] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 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.