• 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

ebbok: Learn_ESP32_with_Arduino_IDE (3rd) – 9.3 and 9.4

Q&A Forum › Category: ESP32 › ebbok: Learn_ESP32_with_Arduino_IDE (3rd) – 9.3 and 9.4
0 Vote Up Vote Down
Manfred Baudeck asked 7 months ago

in 9_3_MQTT_Client_1.ino between line 64 and 65
xTimerStop(wifiReconnectTimer, 0);
needs to be added.
(same for 9.4 between line 81 and 82)
The ESP_client_1 is establishing
a new WIFI connection,
a new connection to the MQTT broker and
a new subscribtion
every 2 seconds
in 9_4_MQTT_Client_2.ino
line 214
mqttClient.publish(“esp32/led”, 0, true, “toggle”);
the retain flag (3rd argument) is set to true
As a result the ESP_Client_1 gets a toggle message
every 2 seconds and the led is blinking
Adding the mentioned line fixes the problem

Question Tags: Error in code
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Hi
Thanks for mentioning it.
I’ll fix the code.
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.