ESP8266 MQTT disconnecting & reboot ESP 1-3 minutes
dareksin78 opened this issue · 11 comments
ESP_Easy_mega_20231225_normal_ESP8266_4M1M
I have the same problem #4996
I was looking for 2 days... and I think I found the solution, or so I think.
If I set value corrections here, there is a problem with mqtt!!!
Mqtt works fine if I don't set any rules.
Back to ESP_Easy_mega 20231225_normal_ESP8266_4M1M
does not help.
It's ok here: ESP_Easy_mega_20231130_normal_ESP8266_4M1M.
Please check and let me know if this is the reason for you.
Have you tried with this build? https://td-er.nl/ESPEasy/latest/ (From Chrome or Edge you can flash your ESP directly)
OK, I think I can reproduce it.
First I thought it might be related to publishing an empty message.
I had a sysinfo task running with some formula and it ran fine for hours.
Then I added a second task (1-wire) without anything connected and then it started crashing when sending the sysinfo task.
I also have a stackdump, so I can hopefully find what's wrong here.
The problem occurs immediately, you can see it within a few minutes, you don't have to wait several hours
Yep, it seems there is a bug in the Arduino code when using a very specific string length.
I have a bugfix on my desktop running to work around this problem, but have to check a lot of other code to see where it might run into this same issue.
Also I got some strange topic being sent to the MQTT controller, which might explain why it can get disconnected:
Have to look into this also as I have no clue yet how the formula can end up in the MQTT topic
I uploaded the build which should fix this to the webflasher
Can you test it, to see if it is also fixing your issue?
It's OK for the first 10 minutes.
I will write more tomorrow because I have to leave the house.
It's OK for the first 10 minutes.
Ah based on the issue title, it should be considered fixed :)
Is it still working?
It's ok .
Thank you for fixing it.