1.1.1
This commit is contained in:
parent
1205c23d67
commit
fb86cb8b88
|
|
@ -86,32 +86,27 @@ void loop() {
|
|||
WiFiConnect = true;
|
||||
}
|
||||
if (WiFiConnect) {
|
||||
Serial.println("\n\n###############\ncomenzando nueva revision\n###############");
|
||||
Serial.println("\n\n###############\ncomenzando nueva revision WiFi\n###############");
|
||||
WIFI_Utils::startWiFi2();
|
||||
lastWiFiCheck = millis();
|
||||
WiFiConnect = false;
|
||||
}
|
||||
|
||||
if (WiFi.status() == WL_CONNECTED) { // Modo iGate
|
||||
Serial.println("conectado");
|
||||
Serial.println("conectado a Wifi");
|
||||
|
||||
// probar si pierde wifi que pasa...
|
||||
|
||||
// cuanto tiene wifi , tratar de conectarse a APRS IS
|
||||
// si lo logra --> igate
|
||||
// si no --------> digirepeater
|
||||
|
||||
|
||||
} else { // Modo DigiRepeater
|
||||
Utils::checkDisplayInterval();
|
||||
Utils::checkBeaconInterval();
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
||||
DIGI_Utils::processPacket(LoRa_Utils::receivePacket());
|
||||
}
|
||||
|
||||
/* si wifi
|
||||
si aprs --> igate
|
||||
else --> digi/exit
|
||||
else--> be digi
|
||||
*/
|
||||
|
||||
/*if (!espClient.connected()) {
|
||||
APRS_IS_Utils::connect();
|
||||
|
||||
// if aprsis ok --> be igate
|
||||
// else --> be digirepeater
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
@ -97,6 +97,7 @@ void startWiFi2() {
|
|||
Serial.println(WiFi.localIP());
|
||||
show_display("", "", " Connected!!", "" , " loading ...", 1000);
|
||||
} else {
|
||||
Serial.println("\nNot connected to WiFi! (starting DigiRepeater Mode)");
|
||||
show_display("", "", " WiFi Not Connected!", " DigiRepeater MODE" , " loading ...", 2000);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue