mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-06-26 21:11:17 +02:00
validate stations heard
This commit is contained in:
@@ -39,6 +39,14 @@ void sendNewPacket(const String &typeOfMessage, const String &newPacket) {
|
||||
Serial.println(newPacket);
|
||||
}
|
||||
|
||||
String generatePacket(String aprsisPacket) {
|
||||
String firstPart, messagePart;
|
||||
aprsisPacket.trim();
|
||||
firstPart = aprsisPacket.substring(0, aprsisPacket.indexOf(","));
|
||||
messagePart = aprsisPacket.substring(aprsisPacket.indexOf("::")+2);
|
||||
return firstPart + ",TCPIP," + Config.callsign + "::" + messagePart;
|
||||
}
|
||||
|
||||
/*String receivePacket() {
|
||||
String loraPacket;
|
||||
int packetSize = LoRa.parsePacket(); // Listening for LoRa Packets
|
||||
|
||||
Reference in New Issue
Block a user