outputBuffer Created-all LoRa send to Buffer

This commit is contained in:
richonguzman
2024-04-20 09:27:20 -04:00
parent ce058ed424
commit b4f2daca42
11 changed files with 89 additions and 107 deletions
+1 -9
View File
@@ -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", "");