kopia lustrzana https://github.com/sh123/esp32_loraprs
Limit maximum APRS-IS incoming message length
rodzic
d8f64d6f21
commit
e285651936
|
@ -219,6 +219,10 @@ void Service::onAprsisDataAvailable()
|
|||
Serial.print(c);
|
||||
if (c == '\n') break;
|
||||
aprsisData += c;
|
||||
if (aprsisData.length() >= CfgMaxAprsInMessageSize) {
|
||||
Serial.println("APRS-IS incoming message is too long, skipping tail");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (config_.EnableIsToRf && aprsisData.length() > 0) {
|
||||
|
|
|
@ -84,6 +84,7 @@ private:
|
|||
const int CfgWiFiConnRetryMaxTimes = 10;
|
||||
const int CfgMaxAX25PayloadSize = 512;
|
||||
const int CfgFreqCorrMinHz = 150;
|
||||
const int CfgMaxAprsInMessageSize = 255;
|
||||
|
||||
// csma parameters, overriden with KISS commands
|
||||
const long CfgCsmaPersistence = 100; // 255 for real time, lower for higher traffic
|
||||
|
|
Ładowanie…
Reference in New Issue