testing lowerMemory Ussssage

This commit is contained in:
richonguzman
2024-05-30 16:27:07 -04:00
parent e63d54d9f0
commit a87cc0be58
7 changed files with 114 additions and 52 deletions

View File

@@ -100,7 +100,10 @@ namespace APRS_IS_Utils {
lastScreenOn = millis();
}
}
secondLine = "WiFi: " + wifiState + " APRS-IS: " + aprsisState;
secondLine = "WiFi: ";
secondLine += wifiState;
secondLine += " APRS-IS: ";
secondLine += aprsisState;
}
String buildPacketToUpload(const String& packet) {
@@ -115,7 +118,9 @@ namespace APRS_IS_Utils {
String buildPacketToTx(const String& aprsisPacket, uint8_t packetType) {
String packet = aprsisPacket;
packet.trim();
String outputPacket = packet.substring(0, packet.indexOf(",")) + ",TCPIP,WIDE1-1," + Config.callsign;
String outputPacket = packet.substring(0, packet.indexOf(","));
outputPacket.concat(",TCPIP,WIDE1-1,");
outputPacket.concat(Config.callsign);
switch (packetType) {
case 0: // gps
if (packet.indexOf(":=") > 0) {
@@ -150,7 +155,8 @@ namespace APRS_IS_Utils {
bool processReceivedLoRaMessage(const String& sender, const String& packet) {
String receivedMessage;
if (packet.indexOf("{") > 0) { // ack?
String ackMessage = "ack" + packet.substring(packet.indexOf("{") + 1);
String ackMessage = "ack";
ackMessage.concat(packet.substring(packet.indexOf("{") + 1));
ackMessage.trim();
//Serial.println(ackMessage);
String processedSender = sender;
@@ -268,8 +274,10 @@ namespace APRS_IS_Utils {
for (int j = sixthLine.length();j < 9;j++) {
sixthLine += " ";
}
sixthLine += "> " + Sender;
seventhLine = "QUERY = " + receivedMessage;
sixthLine += "> ";
sixthLine += Sender;
seventhLine = "QUERY = ";
seventhLine += receivedMessage;
}
} else {
Utils::print("Received Message from APRS-IS : " + packet);