Open dmikushin opened 11 months ago
If you restart from within the function that processes messages, the processing of the current message will be incomplete. Instead do something like this:
bool RestartTriggered = false;
ESP.restart()
is currently: RestartTriggered = true;
loop()
for restart: if (RestartTriggered == true) {ESP.restart();}
Boa tarde isso não funciona !!!!!
Hmmm think i doing it as describe but i get a boot loop
https://t.me/Luberth_Dijkman https://github.com/ldijkman/async-esp-fs-webserver/blob/master/docs/ino/thermostat_web_flash/chatgpt_thermostat.ino
I'm doing
ESP.restart()
in response to a restart message sent by Telegram client. However, after device reboots, it get the same restart message, and eventually restarts forever. How do I avoid executing the same message again after restart?