From d82cf9235d923360454b68038014489554b25bd5 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 18 Jun 2024 23:42:09 -0400 Subject: [PATCH] starting with builing Tx packet --- src/aprs_is_utils.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/aprs_is_utils.cpp b/src/aprs_is_utils.cpp index 45fc2db..d67d4f7 100644 --- a/src/aprs_is_utils.cpp +++ b/src/aprs_is_utils.cpp @@ -121,8 +121,15 @@ namespace APRS_IS_Utils { String buildPacketToTx(const String& aprsisPacket, uint8_t packetType) { String packet = aprsisPacket; packet.trim(); - String outputPacket = packet.substring(0, packet.indexOf(",")); - outputPacket.concat(",TCPIP,WIDE1-1,"); + String outputPacket = Config.callsign; + outputPacket += ">APLRG1"; + if (Config.beacon.path != "") { + outputPacket += ","; + outputPacket += Config.beacon.path; + } + outputPacket += ":}"; + outputPacket += packet.substring(0, packet.indexOf(",")); //packetCallsign>packetTocall + outputPacket.concat(",TCPIP,"); outputPacket.concat(Config.callsign); outputPacket.concat("*"); switch (packetType) {