not callsign filtering from aprs-is feed
This commit is contained in:
parent
0c09f5a934
commit
4bf4e781df
|
|
@ -124,6 +124,7 @@ namespace APRS_IS_Utils {
|
||||||
String outputPacket = packet.substring(0, packet.indexOf(","));
|
String outputPacket = packet.substring(0, packet.indexOf(","));
|
||||||
outputPacket.concat(",TCPIP,WIDE1-1,");
|
outputPacket.concat(",TCPIP,WIDE1-1,");
|
||||||
outputPacket.concat(Config.callsign);
|
outputPacket.concat(Config.callsign);
|
||||||
|
outputPacket.concat("*");
|
||||||
switch (packetType) {
|
switch (packetType) {
|
||||||
case 0: // gps
|
case 0: // gps
|
||||||
if (packet.indexOf(":=") > 0) {
|
if (packet.indexOf(":=") > 0) {
|
||||||
|
|
@ -239,7 +240,6 @@ namespace APRS_IS_Utils {
|
||||||
if (!packet.startsWith("#")) {
|
if (!packet.startsWith("#")) {
|
||||||
if (Config.aprs_is.messagesToRF && packet.indexOf("::") > 0) {
|
if (Config.aprs_is.messagesToRF && packet.indexOf("::") > 0) {
|
||||||
Sender = packet.substring(0, packet.indexOf(">"));
|
Sender = packet.substring(0, packet.indexOf(">"));
|
||||||
if (Utils::checkValidCallsign(Sender)) {
|
|
||||||
AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2);
|
AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2);
|
||||||
Addressee = AddresseeAndMessage.substring(0, AddresseeAndMessage.indexOf(":"));
|
Addressee = AddresseeAndMessage.substring(0, AddresseeAndMessage.indexOf(":"));
|
||||||
Addressee.trim();
|
Addressee.trim();
|
||||||
|
|
@ -288,7 +288,7 @@ namespace APRS_IS_Utils {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Utils::print("Received Message from APRS-IS : " + packet);
|
Utils::print("Received Message from APRS-IS : " + packet);
|
||||||
if (STATION_Utils::wasHeard(Addressee) && Utils::checkValidCallsign(Addressee)) {
|
if (STATION_Utils::wasHeard(Addressee)) {
|
||||||
STATION_Utils::addToOutputPacketBuffer(buildPacketToTx(packet, 1));
|
STATION_Utils::addToOutputPacketBuffer(buildPacketToTx(packet, 1));
|
||||||
display_toggle(true);
|
display_toggle(true);
|
||||||
lastScreenOn = millis();
|
lastScreenOn = millis();
|
||||||
|
|
@ -296,7 +296,6 @@ namespace APRS_IS_Utils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
||||||
}
|
|
||||||
} else if (Config.aprs_is.objectsToRF && packet.indexOf(":;") > 0) {
|
} else if (Config.aprs_is.objectsToRF && packet.indexOf(":;") > 0) {
|
||||||
Utils::println("Received Object from APRS-IS : " + packet);
|
Utils::println("Received Object from APRS-IS : " + packet);
|
||||||
STATION_Utils::addToOutputPacketBuffer(buildPacketToTx(packet, 5));
|
STATION_Utils::addToOutputPacketBuffer(buildPacketToTx(packet, 5));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue