mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-09 18:32:59 +02:00
update to json config
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ void typeOfPacket(String packet) {
|
||||
}
|
||||
|
||||
void processPacket(String packet) {
|
||||
String firstPart, lastPart;
|
||||
String firstPart, lastPart, loraPacket;
|
||||
if (packet != "") {
|
||||
Serial.print("Received Lora Packet : " + String(packet));
|
||||
if ((packet.substring(0, 3) == "\x3c\xff\x01") && (packet.indexOf("NOGATE") == -1) && (packet.indexOf("WIDE1-1") > 10)) { // confirmar lo de WIDE1-1 !!!
|
||||
@@ -37,12 +37,12 @@ void processPacket(String packet) {
|
||||
typeOfPacket(packet);
|
||||
firstPart = packet.substring(3,packet.indexOf(",")+1);
|
||||
lastPart = packet.substring(packet.indexOf(":"));
|
||||
Serial.println(firstPart + Config.callsign + "*" + lastPart);
|
||||
loraPacket = firstPart + Config.callsign + "*" + lastPart;
|
||||
delay(500);
|
||||
if (stationMode == 4) { // Digirepeating with Freq Rx != Tx
|
||||
LoRa_Utils::changeFreqTx();
|
||||
}
|
||||
LoRa_Utils::sendNewPacket("APRS", firstPart + Config.callsign + lastPart);
|
||||
LoRa_Utils::sendNewPacket("APRS", loraPacket);
|
||||
if (stationMode == 4) {
|
||||
LoRa_Utils::changeFreqRx();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user