This commit is contained in:
richonguzman
2025-03-09 10:48:18 -03:00
parent 4c63dd8bb7
commit 1c07c2fb2b
4 changed files with 83 additions and 1 deletions

View File

@@ -68,6 +68,22 @@ namespace QUERY_Utils {
saveNewDigiEcoModeConfig = true;
} else if (queryQuestion.indexOf("?APRSEMS") == 0) { // Digipeater EcoMode Status
answer = (Config.digi.ecoMode) ? "DigiEcoMode:ON" : "DigiEcoMode:OFF";
} else if (STATION_Utils::isManager(station) && (!queryFromAPRSIS || !Config.remoteManagement.rfOnly)) {
if (queryQuestion.indexOf("?TX=ON") == 0) {
Config.loramodule.txActive = true;
Serial.println("TX=ON");
// send answer?
// change status?
} else if (queryQuestion.indexOf("?TX=OFF") == 0) {
Config.loramodule.txActive = false;
Serial.println("TX=OFF");
// send answer?
// change status?
} else if (queryQuestion.indexOf("?TX=?") == 0) {
answer = (Config.loramodule.txActive) ? "TX=ON" : "TX=OFF";
} else if (queryQuestion.indexOf("?COMMIT") == 0) { // when, after changing state????
Config.writeFile();
}
}
String queryAnswer = Config.callsign;