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
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
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