Hello everyone, I would to collect any ideas for my following project. In short: I Have nodeMCU and using as webserver for controll thermostat. It works great for me, but usually it happens that webserver (nodeMCU) freeze. And I have to reset it. Do you have any idea how to make easy resetting watchdog for nodeMCU? I know that ESP8266 has internal watchdog, but I program it through the Arduino IDE and there is no function for it. Any ideas are welcome. Thank you.
There is a lot happening on the esp in the background that you never even know about.If you write long blocking interrupt functions it messes with the esp own interrupt routines. Make your interrupt service routines as short as you can, ie, only set a flag, and then test for flag state and do the slower work in the loop function. Also place a sleep(0) or delay(0) at the end of loop function, because then the esp can do its own thing.