Hi, I am just doing your Course on ESP32 and must say it is great, just what I needed to get me started.
Currently I am testing the script from Module 7 – ESP32 MQTT => MQTT Project – MQTT Client ESP32 #1 and I can\’t seem to make it run.
I have all Libraries installed correctly and used the right board & port. At first i used the script in the course material, than copy pasted the one from the course page, both result in the same error.
Error massage is as follows. Can you please help?
Arduino: 1.8.5 (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
WARNING: library LiquidCrystal_I2C claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (esp32) architecture(s).
sketch_feb15b:65: error: variable or field ‘WiFiEvent’ declared void
void WiFiEvent(WiFiEvent_t event) {
^
sketch_feb15b:65: error: ‘WiFiEvent_t’ was not declared in this scope
sketch_feb15b:65: error: variable or field ‘WiFiEvent’ declared void
void WiFiEvent(WiFiEvent_t event) {
^
sketch_feb15b:65: error: ‘WiFiEvent_t’ was not declared in this scope
exit status 1
variable or field ‘WiFiEvent’ declared void
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Hello, I hope you are doing well. It looks like you need to update your libraries and use the latest libraries. In order to compile that example, you need to have installed the latest versions of everything:
- Arduino IDE 1.8.8
- Tools > Board > Boards Manager: ESP32 board add-on: core version 1.0.1
- Sketch > Include Library > Manage libraries: AsyncTCP library version 1.0.3
Are you using those versions? Does it compile now? Thanks for your patience!