Closed thomasklingbeil closed 6 years ago
i have the same problem only when i use example WebClient on ESP8266, but not always. Sometimes the ESP8266 gets a string with data - about once in ten, sometimes crashes on connection , but basically gets an empty string. I tried other ESP8266, changed the softwareserial pins on ESP and libs, but again there is unstable work. The same result if instead of M590 use A6 module. With arduino nano works fine.
PRs are welcome for this...
I think that common issue on esp8266. RTOS need to handle some commands every xxx microseconds. So add delay in infinite loop maybe help.
Please try on the latest master branch. Reopen if still have this issue.
It seems that on connection problems, when using MQTT, the ESP crashes. Receiving/Sending MQTT messages works properly at first, but as soon as the module signals "+TCPCLOSE:1,Link Closed" the module crashes, maybe a problem when reconnecting? After the automatic reboot everything goes back to normal.