• 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

Module 7 – ESP32 MQTT => MQTT Project – MQTT Client ESP32 #1 Script error

Q&A Forum › Category: ESP32 › Module 7 – ESP32 MQTT => MQTT Project – MQTT Client ESP32 #1 Script error
0 Vote Up Vote Down
achimjung asked 6 years ago

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.

Question Tags: Module 7 - ESP32 MQTT => MQTT Project – MQTT Client ESP32 #1
1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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!

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.