The MQTT broker is working fine, as is the MQTT_Client_1 code. I’ve never encountered an error like this, and don’t have any idea where to begin troubleshooting.
The code compiles and loads OK, but I get the following output from the serial port, continuously repeating. The display is lit, but blank. Can you please help me troubleshoot this error?
————— CUT HERE FOR EXCEPTION DECODER —————
epc1=0x40205dc9 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
sp: 3ffffdc0 end: 3fffffc0 offset: 0190
3fffff50: 3ffe85cc 3ffee704 00000001 40205dc9
3fffff60: 3fffdad0 3ffee704 3ffeea80 40205e18
3fffff70: 3fffdad0 3ffee704 3ffeea80 4020134c
3fffff80: feefeffe feefeffe feefeffe feefeffe
3fffff90: feefeffe feefeffe feefeffe feefeffe
3fffffa0: 3fffdad0 00000000 3ffeebac 40206f1c
3fffffb0: feefeffe feefeffe 3ffe85e4 40100c99
I’ve checked and double-checked all the code and it looks OK.
It’s a NodeMCU, and I’m using the code downloaded from Github.
Can you tell me the ESP8266 boards version you have installed?
Go to Tools > Board > Boards Manager and search for “ESP8266”.
Can you downgrade to version 3.0.1?
Let me know if it fixes the issue.
Sara, I downgraded to v3.01, but still get the same, continuous output from the serial port. 🙁
Yes, I have checked and double-checked both the code and the wiring. It’s all good.
Can you try a sample code for the I2C LCD display? Just to check if it is related to the LCD?
Sure. I ran the “Unit 6: I2C Liquid Crystal Display (LCD)” code and it runs fine.
I think you may need to move the content of the onMqttMessage() to the loop().
I modified the code. Can you try it? At the moment I don’t have an LCD to try it out, so I’m not sure if there’s something missing.
Here’s the link to the code: https://gist.github.com/sarasantos/230e702a6058c3b06a1c738e97d69f16
Sure, I’ll be out of town for a few days, but will try it when I return. Thanks!