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.
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
Thanks, you are exactly right. I rolled the revisions back and reloaded the two .h files and all works properly.
Walton