From fb86cb8b8838b212407342b1dd4c1c2d07866b25 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 30 Jul 2023 11:39:57 -0400 Subject: [PATCH] 1.1.1 --- src/LoRa_APRS_iGate.cpp | 25 ++++++++++--------------- src/wifi_utils.cpp | 1 + 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 164bd40..9cd478c 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -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 - }*/ } } \ No newline at end of file diff --git a/src/wifi_utils.cpp b/src/wifi_utils.cpp index 90bc783..a1423c8 100644 --- a/src/wifi_utils.cpp +++ b/src/wifi_utils.cpp @@ -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); } }