• 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

lvgs with MQTT

Q&A Forum › Category: ESP32 › lvgs with MQTT
0 Vote Up Vote Down
Walton Ussery asked 4 months ago

Good morning,
in the book version 1.4, chapter 5.6 example 1; I downloaded the code modified the credentials and broker information. Compiled it and when it runs, it keeps rebooting. The problem is that it is not connecting to the Mosquitto MQTT broker. As far as Mosquitto is concerned, I have at least two esp8266 microcontrollers publishing ans subscribing on five different topics. All are reporting properly in Node Red. I opened the source code on one of the properly working esp8266 microcontrollers just in case I got the user information wrong and copied that to the code for the CYD. Still not connecting. This is the fault I get:

IP address: 
10.0.0.47
Connecting to MQTT...

assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)

The IP address is correct. I am at a loss unless I have a wrong header file or something like that.

Question Tags: LVGL with MQTT
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Hi.
I think the issue is some incompatibility with the version 3.1.0 of the ESP32 core and the AsyncTCP library.
At the moment, I’m not sure how to solve the issue besides downgrading the ESP32 core to version 3.0.7.
Go to Tools > Boards > Boards Manager > ESP32 and downgrade to version 3.0.7. Then, try to run the code again.
 
Let me know if this fixes the issue.
Regards,
Sara

0 Vote Up Vote Down
Walton Ussery answered 4 months ago

Thanks, you are exactly right. I rolled the revisions back and reloaded the two .h files and all works properly.
Walton

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

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
 
We’ll adjust the code as soon as I find a new solution.
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.