devControl bugs and error handling

This commit is contained in:
Andreas Schiffler 2022-08-05 13:20:12 +02:00
parent 7ed5a0a9e1
commit 6b1f027d01
7 changed files with 111 additions and 68 deletions

View file

@ -71,6 +71,7 @@ void Main::setup(uint32_t timeout) {
mUpdater->setup(mWeb);
mApActive = startAp;
mStActive = !startAp;
}
@ -121,6 +122,10 @@ void Main::loop(void) {
stats();
}*/
}
if (WiFi.status() != WL_CONNECTED) {
DPRINTLN(DBG_INFO, "[WiFi]: Connection Lost");
mStActive = false;
}
}