Closed jenschr closed 1 year ago
HI @jenschr
Thanks for the bug report, which is caused by recently aggressive behaviour of the compiler settings.
While I'll fix the issue very soon, you can test normally by temporarily setting, if using Arduino IDE, Preferences->Compiler Warnings
to Default
, instead of All
or More
Yeah. I hacked around it, but wanted to be sure you knew about this issue. I'm looking through many MQTT libs for my students tonight and there sure is a lot of them that does not compile right now :)
Hi @jenschr
The new AsyncMQTT_Generic releases v1.7.0 has just been published. Your contribution is noted in Contributions and Thanks
Best Regards,
Describe the bug
In the example file "FullyFeatured_ESP32.ino", the Switch case does not have a "default" to catch anything not handled.
Steps to Reproduce
Compile example "FullyFeatured_ESP32.ino" in Arduino IDE with board set to "Adafruit Feather ESP32-S2".
Expected behavior
Expected the file to compile without errors
Actual behavior
Error compiling....
Solution
Just add a default case for the WiFiEvent(WiFiEvent_t event) method outside the "if" so that both versions has a default so you don't hqve to handle all possible cases:
default: break;
Information
Arduino IDE version: 1.8.19 ESP32 Core Version 2.0.4 OS: OSX 11.6
Context: Trying to make the basic example compile
Additional context
Relevant error message: