• 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_Publish_Subscribe.ino

Q&A Forum › Category: ESP32 › ESP32_Publish_Subscribe.ino
0 Vote Up Vote Down
Steve Bechel asked 8 months ago

“/home/captain-toasted/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++” -MMD -c “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/cpp_flags” -Wall -Wextra -Os -Werror=return-type -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=”ESP32_DEV” -DARDUINO_VARIANT=”esp32″ -DARDUINO_PARTITION_default -DARDUINO_HOST_OS=”linux” -DARDUINO_FQBN=”esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default” -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/defines” “-I/home/captain-toasted/Arduino/RandomNerd/ESP32_Publish_Subscribe_V2” -iprefix “/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/include/” “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/includes” “-I/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/qio_qspi/include” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/cores/esp32” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/variants/esp32” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/WiFi/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network/src” “-I/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src” “-I/home/captain-toasted/Arduino/libraries/AsyncTCP/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/ESPmDNS/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Preferences/src” “@/tmp/arduino_build_677618/build_opt.h” “@/tmp/arduino_build_677618/file_opts” “/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network/src/NetworkServer.cpp” -o “/tmp/arduino_build_677618/libraries/Network/NetworkServer.cpp.o”
“/home/captain-toasted/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++” -MMD -c “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/cpp_flags” -Wall -Wextra -Os -Werror=return-type -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=”ESP32_DEV” -DARDUINO_VARIANT=”esp32″ -DARDUINO_PARTITION_default -DARDUINO_HOST_OS=”linux” -DARDUINO_FQBN=”esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default” -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/defines” “-I/home/captain-toasted/Arduino/RandomNerd/ESP32_Publish_Subscribe_V2” -iprefix “/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/include/” “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/includes” “-I/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/qio_qspi/include” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/cores/esp32” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/variants/esp32” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/WiFi/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network/src” “-I/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src” “-I/home/captain-toasted/Arduino/libraries/AsyncTCP/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/ESPmDNS/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Preferences/src” “@/tmp/arduino_build_677618/build_opt.h” “@/tmp/arduino_build_677618/file_opts” “/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network/src/NetworkUdp.cpp” -o “/tmp/arduino_build_677618/libraries/Network/NetworkUdp.cpp.o”
Compiling library “async-mqtt-client-develop”
“/home/captain-toasted/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++” -MMD -c “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/cpp_flags” -Wall -Wextra -Os -Werror=return-type -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=”ESP32_DEV” -DARDUINO_VARIANT=”esp32″ -DARDUINO_PARTITION_default -DARDUINO_HOST_OS=”linux” -DARDUINO_FQBN=”esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default” -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/defines” “-I/home/captain-toasted/Arduino/RandomNerd/ESP32_Publish_Subscribe_V2” -iprefix “/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/include/” “@/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/flags/includes” “-I/home/captain-toasted/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-33fbade6/esp32/qio_qspi/include” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/cores/esp32” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/variants/esp32” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/WiFi/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network/src” “-I/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src” “-I/home/captain-toasted/Arduino/libraries/AsyncTCP/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/ESPmDNS/src” “-I/home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Preferences/src” “@/tmp/arduino_build_677618/build_opt.h” “@/tmp/arduino_build_677618/file_opts” “/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp” -o “/tmp/arduino_build_677618/libraries/async-mqtt-client-develop/AsyncMqttClient.cpp.o”
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp: In constructor ‘AsyncMqttClient::AsyncMqttClient()’:
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:45:7: warning: missing initializer for member ‘AsyncMqttClientInternals::ParsingInformation::maxTopicLength’ [-Wmissing-field-initializers]
45 | _parsingInformation{.bufferState = AsyncMqttClientInternals::BufferState::NONE},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:45:7: warning: missing initializer for member ‘AsyncMqttClientInternals::ParsingInformation::topicBuffer’ [-Wmissing-field-initializers]
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:45:7: warning: missing initializer for member ‘AsyncMqttClientInternals::ParsingInformation::packetType’ [-Wmissing-field-initializers]
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:45:7: warning: missing initializer for member ‘AsyncMqttClientInternals::ParsingInformation::packetFlags’ [-Wmissing-field-initializers]
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:45:7: warning: missing initializer for member ‘AsyncMqttClientInternals::ParsingInformation::remainingLength’ [-Wmissing-field-initializers]
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp: In member function ‘AsyncMqttClient& AsyncMqttClient::setServer(const char*, const char*)’:
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:138:19: warning: comparison with string literal results in unspecified behavior [-Waddress]
138 | if (_hostName != “”) {
| ~~~~~~~~~~^~~~~
/home/captain-toasted/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.cpp:149:1: error: control reaches end of non-void function [-Werror=return-type]
149 | }
| ^
cc1plus: some warnings being treated as errors
Multiple libraries were found for “AsyncTCP.h”
Used: /home/captain-toasted/Arduino/libraries/AsyncTCP
Not used: /home/captain-toasted/Arduino/libraries/AsyncTCP-master
Using library WiFi at version 3.0.5 in folder: /home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/WiFi
Using library Network at version 3.0.5 in folder: /home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network
Using library async-mqtt-client-develop at version 0.9.0 in folder: /home/captain-toasted/Arduino/libraries/async-mqtt-client-develop
Using library AsyncTCP at version 1.1.4 in folder: /home/captain-toasted/Arduino/libraries/AsyncTCP
Using library ESPmDNS at version 3.0.5 in folder: /home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/ESPmDNS
Using library Preferences at version 3.0.5 in folder: /home/captain-toasted/.arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Preferences
exit status 1
Error compiling for board ESP32 Dev Module.

Question Tags: Arduino
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Hi.
What tutorial are you following?
Regards,
Sara

0 Vote Up Vote Down
Steve Bechel answered 7 months ago

Smart Home.
The problem turned out to be the version of ESP32 by Espressif Systems. I downgraded to version 3.0.2 and the problem went away. And yes, I then upgraded back to version 3.0.5 and the problem came back. I am running Arduino 1.8.19 on a Raspberry Pi 5 with the Raspberry Pi OS(64-bit) release 2024-07-04.

Thank you for the help!

0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Hi.
Thanks for your feedback.
We’re currently out of the office.
I’ll test this with version 3.0.5 when we get back on Monday and try to understand what’s going on.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Hi.
I just tested the code with version 3.0.5 and it is working as expected.
Maybe you need to update the libraries??
I’m not sure why you get that error and for me it works fine…
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.