statusMode 3 ready

This commit is contained in:
richonguzman 2023-06-07 19:34:18 -04:00
parent b48bc0a461
commit 54af00d357
12 changed files with 104 additions and 64 deletions

View file

@ -10,30 +10,9 @@ extern bool statusAfterBoot;
namespace utils {
void validateMode(int mode) {
if (mode == 1 || mode == 2 || mode == 5) {
if (mode==1) {
Serial.println("stationMode ---> iGate (only Rx)");
} else {
Serial.println("stationMode ---> iGate (Rx + Tx)");
}
WIFI_Utils::setup();
btStop();
} else if (mode == 3) {
Serial.println("stationMode ---> DigiRepeater Rx freq = Tx freq");
} else if (mode == 4) {
Serial.println("stationMode ---> DigiRepeater Rx freq = Tx freq");
} else {
Serial.println("stationMode ---> NOT VALID, check 'data/igate_conf.json'");
while (1);
}
}
void processStatus() {
delay(1000);
String startupStatus = Config.callsign + ">APLRG1,qAC:>" + Config.defaultStatus;
espClient.write((startupStatus + "\n").c_str());
espClient.write((Config.callsign + ">APLRG1,qAC:>" + Config.defaultStatus + "\n").c_str());
statusAfterBoot = false;
}