mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-11-18 11:52:20 +01:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b6012a0ca | ||
|
|
3efa333df4 | ||
|
|
aab05be49f |
No files matched your search
@@ -69,7 +69,7 @@ ___________________________________________________________________*/
|
||||
#endif
|
||||
|
||||
|
||||
String versionDate = "2026-10-18";
|
||||
String versionDate = "2026-10-29";
|
||||
String versionNumber = "4.0.5";
|
||||
Configuration Config;
|
||||
WiFiClient aprsIsClient;
|
||||
|
||||
+5
-5
@@ -221,8 +221,8 @@ namespace Utils {
|
||||
if (Config.battery.sendInternalVoltage || Config.battery.monitorInternalVoltage) {
|
||||
float internalVoltage = BATTERY_Utils::checkInternalVoltage();
|
||||
if (Config.battery.monitorInternalVoltage && internalVoltage < Config.battery.internalSleepVoltage) {
|
||||
aprsisBeaconPacket += " **IntBatWarning:SLEEP**";
|
||||
loraBeaconPacket += " **IntBatWarning:SLEEP**";
|
||||
aprsisBeaconPacket += " **IntBattWarning:SLEEP**";
|
||||
loraBeaconPacket += " **IntBattWarning:SLEEP**";
|
||||
shouldSleepLowVoltage = true;
|
||||
}
|
||||
|
||||
@@ -248,8 +248,8 @@ namespace Utils {
|
||||
if (Config.battery.sendExternalVoltage || Config.battery.monitorExternalVoltage) {
|
||||
float externalVoltage = BATTERY_Utils::checkExternalVoltage();
|
||||
if (Config.battery.monitorExternalVoltage && externalVoltage < Config.battery.externalSleepVoltage) {
|
||||
aprsisBeaconPacket += " **ExtBatWarning:SLEEP**";
|
||||
loraBeaconPacket += " **ExtBatWarning:SLEEP**";
|
||||
aprsisBeaconPacket += " **ExtBattWarning:SLEEP**";
|
||||
loraBeaconPacket += " **ExtBattWarning:SLEEP**";
|
||||
shouldSleepLowVoltage = true;
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ namespace Utils {
|
||||
if (mode == 0) { // at startup
|
||||
delay(3000);
|
||||
}
|
||||
Serial.println("\n\n*** Sleeping Low Battey Voltage ***\n\n");
|
||||
Serial.println("\n\n*** Sleeping Low Battery Voltage ***\n\n");
|
||||
esp_sleep_enable_timer_wakeup(30 * 60 * 1000000); // sleep 30 min
|
||||
if (mode == 1) { // low voltage detected after a while
|
||||
displayToggle(false);
|
||||
|
||||
+4
-4
@@ -49,12 +49,12 @@ namespace WIFI_Utils {
|
||||
uint32_t currentTime = millis();
|
||||
|
||||
if (backupDigiMode) {
|
||||
if (!networkManager->isWiFiConnected() && ((currentTime - lastBackupDigiTime) >= 15 * 60 * 1000)) {
|
||||
Serial.println("*** Stopping BackUp Digi Mode ***");
|
||||
if (lastServerCheck > lastBackupDigiTime) { // APRS-IS server spoke after entering backup (with or without a WiFi drop)
|
||||
Serial.println("*** APRS-IS Server Back (Stopping Backup Digi Mode) ***");
|
||||
backupDigiMode = false;
|
||||
wifiCounter = 0;
|
||||
} else if (networkManager->isWiFiConnected()) {
|
||||
Serial.println("*** WiFi Reconnect Success (Stopping Backup Digi Mode) ***");
|
||||
} else if (!networkManager->isWiFiConnected() && ((currentTime - lastBackupDigiTime) >= 15 * 60 * 1000)) {
|
||||
Serial.println("*** Stopping BackUp Digi Mode ***"); // no WiFi for 15 min: leave backup to retry WiFi
|
||||
backupDigiMode = false;
|
||||
wifiCounter = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user