mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-25 02:00:15 +01:00
updated screen size
This commit is contained in:
parent
06c74b636b
commit
d0eccf3e5f
|
|
@ -20,7 +20,7 @@ Configuration Config;
|
|||
WiFiClient espClient;
|
||||
|
||||
|
||||
String versionDate = "2023.06.18";
|
||||
String versionDate = "2023.06.19";
|
||||
int myWiFiAPIndex = 0;
|
||||
int myWiFiAPSize = Config.wifiAPs.size();
|
||||
WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex];
|
||||
|
|
|
|||
|
|
@ -171,8 +171,13 @@ void processAPRSISPacket(String packet) {
|
|||
lastScreenOn = millis();
|
||||
delay(500);
|
||||
espClient.write(queryAnswer.c_str());
|
||||
sixthLine = "Callsign = " + Sender;
|
||||
seventhLine = "TYPE --> QUERY";
|
||||
fifthLine = "APRS-IS ----> APRS-IS";
|
||||
sixthLine = Config.callsign;
|
||||
for (int j=sixthLine.length();j<9;j++) {
|
||||
sixthLine += " ";
|
||||
}
|
||||
sixthLine += "> " + Sender;
|
||||
seventhLine = "QUERY = " + receivedMessage;
|
||||
}
|
||||
} else {
|
||||
Serial.print("Received from APRS-IS : " + packet);
|
||||
|
|
@ -181,9 +186,9 @@ void processAPRSISPacket(String packet) {
|
|||
display_toggle(true);
|
||||
lastScreenOn = millis();
|
||||
Utils::typeOfPacket(packet, "APRS-LoRa");
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
||||
}
|
||||
}
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ void setup() {
|
|||
LoRa.setCodingRate4(Config.loramodule.codingRate4);
|
||||
LoRa.enableCrc();
|
||||
LoRa.setTxPower(Config.loramodule.power);
|
||||
Serial.println("init : LoRa Module ... done!");
|
||||
Serial.print("init : LoRa Module ... done!");
|
||||
}
|
||||
|
||||
void sendNewPacket(const String &typeOfMessage, const String &newPacket) {
|
||||
|
|
|
|||
|
|
@ -136,9 +136,9 @@ void checkBeaconInterval() {
|
|||
beacon_update = false;
|
||||
|
||||
}
|
||||
/*if (statusAfterBoot) {
|
||||
if (statusAfterBoot) {
|
||||
processStatus();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
void checkDisplayInterval() {
|
||||
|
|
@ -181,10 +181,9 @@ void typeOfPacket(String packet, String packetType) {
|
|||
String addresseeAndMessage = packet.substring(packet.indexOf("::")+2);
|
||||
String addressee = addresseeAndMessage.substring(0, addresseeAndMessage.indexOf(":"));
|
||||
addressee.trim();
|
||||
seventhLine = sender + " > " + addressee;
|
||||
Serial.println("mensaje desde " + seventhLine);
|
||||
sixthLine = sender + " > " + addressee;
|
||||
} else {
|
||||
seventhLine = sender + "> MESSAGE";
|
||||
sixthLine = sender + "> MESSAGE";
|
||||
}
|
||||
seventhLine = "RSSI: 38dBm SNR: 6dBm";
|
||||
} else if (packet.indexOf(":>") >= 10) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue