From 74a8fa7969e114ef7a326d7267b3289bccfcee7f Mon Sep 17 00:00:00 2001 From: richonguzman Date: Fri, 29 Aug 2025 14:51:07 -0400 Subject: [PATCH] updatedVersion --- src/LoRa_APRS_iGate.cpp | 1 + src/aprs_is_utils.cpp | 5 ++++- src/query_utils.cpp | 5 ++++- src/syslog_utils.cpp | 5 ++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 31f6592..76e1b24 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -68,6 +68,7 @@ ___________________________________________________________________*/ String versionDate = "2025-08-29"; +String versionNumber = "3.1"; Configuration Config; WiFiClient aprsIsClient; WiFiClient mqttClient; diff --git a/src/aprs_is_utils.cpp b/src/aprs_is_utils.cpp index 90d9591..a1ee089 100644 --- a/src/aprs_is_utils.cpp +++ b/src/aprs_is_utils.cpp @@ -41,6 +41,7 @@ extern String sixthLine; extern String seventhLine; extern bool modemLoggedToAPRSIS; extern bool backUpDigiMode; +extern String versionNumber; uint32_t lastRxTime = millis(); bool passcodeValid = false; @@ -78,7 +79,9 @@ namespace APRS_IS_Utils { aprsAuth += Config.callsign; aprsAuth += " pass "; aprsAuth += Config.aprs_is.passcode; - aprsAuth += " vers CA2RXU_iGate 3.0 filter "; + aprsAuth += " vers CA2RXUiGate "; + aprsAuth += versionNumber; + aprsAuth += " filter "; aprsAuth += Config.aprs_is.filter; upload(aprsAuth); } diff --git a/src/query_utils.cpp b/src/query_utils.cpp index 5f8a307..08fc19a 100644 --- a/src/query_utils.cpp +++ b/src/query_utils.cpp @@ -31,6 +31,7 @@ extern float snr; extern int freqError; extern bool shouldSleepLowVoltage; extern bool saveNewDigiEcoModeConfig; +extern String versionNumber; namespace QUERY_Utils { @@ -42,7 +43,9 @@ namespace QUERY_Utils { if (queryQuestion == "?APRS?" || queryQuestion == "H" || queryQuestion == "HELP" || queryQuestion=="?") { answer.concat("?APRSV ?APRSP ?APRSL ?APRSSSR ?EM=? ?TX=? "); // ?APRSH ?WHERE callsign } else if (queryQuestion == "?APRSV") { - answer.concat("CA2RXU_LoRa_iGate 3.0 v"); + answer.concat("CA2RXU_LoRa_iGate v"); + answer.concat(versionNumber); + answer.concat(" "); answer.concat(versionDate); } else if (queryQuestion == "?APRSP") { answer.concat("iGate QTH: "); diff --git a/src/syslog_utils.cpp b/src/syslog_utils.cpp index 2650453..d2e0fa8 100644 --- a/src/syslog_utils.cpp +++ b/src/syslog_utils.cpp @@ -25,6 +25,7 @@ extern Configuration Config; extern String versionDate; +extern String versionNumber; WiFiUDP udpClient; @@ -35,7 +36,9 @@ namespace SYSLOG_Utils { if (Config.syslog.active && WiFi.status() == WL_CONNECTED) { String syslogPacket = "<165>1 - "; syslogPacket.concat(Config.callsign); - syslogPacket.concat(" CA2RXU_LoRa_iGate_3.0 - - - "); //RFC5424 The Syslog Protocol + syslogPacket.concat(" CA2RXU_LoRa_iGate_"); + syslogPacket.concat(versionNumber); + syslogPacket.concat(" - - - "); //RFC5424 The Syslog Protocol char signalData[35]; snprintf(signalData, sizeof(signalData), " / %ddBm / %.2fdB / %dHz", rssi, snr, freqError);