mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-05-04 20:32:13 +02:00
testing lowerMemory Ussssage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user