mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-28 16:52:33 +01:00
2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user