mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:05 +00:00
finalBetaDigi
This commit is contained in:
parent
7b3d6d93a3
commit
0ec1778c1b
7 changed files with 23 additions and 105 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
extern WiFiClient espClient;
|
||||
extern Configuration Config;
|
||||
extern String versionDate;
|
||||
extern bool statusAfterBoot;
|
||||
extern String firstLine;
|
||||
extern String secondLine;
|
||||
|
|
@ -42,6 +43,8 @@ void processStatus() {
|
|||
|
||||
void setupDiplay() {
|
||||
setup_display();
|
||||
Serial.println("\nStarting iGate: " + Config.callsign + " Version: " + versionDate);
|
||||
show_display(" LoRa APRS iGate", " Richonguzman", " -- CD2RXU --", " " + versionDate, 4000);
|
||||
firstLine = "LoRa iGate: " + Config.callsign;
|
||||
if (stationMode==3 || stationMode==4) {
|
||||
secondLine = "<DigiRepeater Active>";
|
||||
|
|
@ -69,7 +72,7 @@ void checkBeaconInterval() {
|
|||
} else if (stationMode==3 || stationMode==4) {
|
||||
show_display(firstLine, secondLine, thirdLine, "SENDING iGate BEACON", 0);
|
||||
fourthLine = " listening...";
|
||||
if (stationMode == 4) { // Digirepeating with Freq Rx != Tx
|
||||
if (stationMode == 4) {
|
||||
LoRa_Utils::changeFreqTx();
|
||||
}
|
||||
LoRa_Utils::sendNewPacket("APRS",iGateBeaconPacket);
|
||||
|
|
@ -106,7 +109,11 @@ void validateDigiFreqs() {
|
|||
}
|
||||
|
||||
void typeOfPacket(String packet) {
|
||||
thirdLine = "Callsign = " + packet.substring(3,packet.indexOf(">"));
|
||||
if (stationMode==1 || stationMode==2) {
|
||||
thirdLine = "Callsign = " + packet.substring(0,packet.indexOf(">"));
|
||||
} else {
|
||||
thirdLine = "Callsign = " + packet.substring(3,packet.indexOf(">"));
|
||||
}
|
||||
if (packet.indexOf("::") >= 10) {
|
||||
fourthLine = "TYPE ----> MESSAGE";
|
||||
} else if (packet.indexOf(":>") >= 10) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue