Browse Source

don't restart on mqtt connection error

main
Hendrik Langer 5 years ago
parent
commit
5131b84443
  1. 4
      src/main.cpp

4
src/main.cpp

@ -362,8 +362,8 @@ void ICACHE_FLASH_ATTR sendValues() {
DEBUG_MSG(".");
if (tries*retry_delay >= max_retry_delay) {
DEBUG_MSG(" [ERROR]\n");
DEBUG_MSG("Rebooting..\n");
ESP.restart();
//DEBUG_MSG("Rebooting..\n");
//ESP.restart();
}
delay(retry_delay);
}

Loading…
Cancel
Save