update to json config

This commit is contained in:
richonguzman
2023-06-08 19:31:27 -04:00
parent c81a04a315
commit e7806a3c05
9 changed files with 60 additions and 62 deletions
+3 -3
View File
@@ -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();
}