mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-04 22:19:00 +00:00
test stationMode1
This commit is contained in:
parent
9769996717
commit
b48bc0a461
12 changed files with 328 additions and 151 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <WiFi.h>
|
||||
#include <Arduino.h>
|
||||
#include "configuration.h"
|
||||
#include "wifi_utils.h"
|
||||
#include "utils.h"
|
||||
|
||||
extern WiFiClient espClient;
|
||||
|
|
@ -9,6 +10,26 @@ 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue