• 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 Issue SYSTEM_EVENT_STA_GOT_IP

Q&A Forum › Category: ESP32 › ESP32 3.0.0 Issue SYSTEM_EVENT_STA_GOT_IP
0 Vote Up Vote Down
Juergen Schnorr asked 1 year ago

Hi,
I am using an Adafruit ESP32 Feather. Using it based on the SmartHome Raspberry PI, ESP32…. tutorial. So some MQTT related stuff. 
Today I ran into the following, actually using the Publish/Subscribe example code out of the tutorial (page 150). I did a free installation of the Arduino environment (2.3.2) on a brand new Windows 11 machine. Installed all the libraries and boards and wanted to test the Publish/Subscribe but the complier thru two errors at

case SYSTEM_EVENT_STA_GOT_IP:

case SYSTEM_EVENT_STA_DISCONNECTED:

The complier suggested to replace with IP_EVENT_STA_GOT_IP and WIFI_EVENT_STA_DISCONNECTED. Which resulted into the compiling and uploading worked fine but the program NOT working.
After some back and forth I went back to an earlier version of “esp32 by Espressif Systems” V2.0.17. Instead of the lastest version 3.0.0. 
Works fine again.
Juergen

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
There were breaking changes from version 2.0 to 3.0.
If you want to use version 3.0, you need to use the following events

ARDUINO_EVENT_WIFI_STA_GOT_IP
ARDUINO_EVENT_WIFI_STA_DISCONNECTED
 
We’ll update all codes to be compatible with version 3 soon.
 
Regards,
Sara

0 Vote Up Vote Down
Juergen Schnorr answered 1 year ago

Hi Sara,
thank you very, very much.
I was on this topic again last night. And used google and ChatGPT and ended up figuring out the same. As it was late I wanted to double check this evening and post it. But you where faster.
Again, thx for your help and all your really great tutorials and books.
Best regards,
 Juergen

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Thanks.
Meanwhile, 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.