This commit is contained in:
Yuri Trikoz
2020-06-24 01:16:00 +03:00
parent b50911ddcf
commit e375cca3dc
16 changed files with 541 additions and 109 deletions

View File

@@ -43,8 +43,9 @@ void startSTAMode() {
}
} while (keepConnecting && tries--);
if (WiFi.status() == WL_CONNECTED) {
initMQTT();
if (isNetworkActive()) {
MqttClient::init();
setLedStatus(LED_OFF);
} else {
startAPMode();