mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-05-08 22:24:27 +02:00
outputBuffer Created-all LoRa send to Buffer
This commit is contained in:
+1
-9
@@ -92,7 +92,7 @@ namespace LoRa_Utils {
|
||||
radio.setFrequency(freq);
|
||||
}
|
||||
|
||||
void sendNewPacket(const String& typeOfMessage, const String& newPacket) {
|
||||
void sendNewPacket(const String& newPacket) {
|
||||
if (!Config.loramodule.txActive) return;
|
||||
|
||||
if (Config.loramodule.txFreq != Config.loramodule.rxFreq) {
|
||||
@@ -127,14 +127,6 @@ namespace LoRa_Utils {
|
||||
//ignorePacket = true;
|
||||
}
|
||||
|
||||
String generatePacket(String aprsisPacket) {
|
||||
String firstPart, messagePart;
|
||||
aprsisPacket.trim();
|
||||
firstPart = aprsisPacket.substring(0, aprsisPacket.indexOf(","));
|
||||
messagePart = aprsisPacket.substring(aprsisPacket.indexOf("::") + 2);
|
||||
return firstPart + ",TCPIP,WIDE1-1," + Config.callsign + "::" + messagePart;
|
||||
}
|
||||
|
||||
String packetSanitization(String packet) {
|
||||
if (packet.indexOf("\0") > 0) {
|
||||
packet.replace("\0", "");
|
||||
|
||||
Reference in New Issue
Block a user