kopia lustrzana https://github.com/sh123/esp32_loraprs
Define maximum AX.25 payload size
rodzic
014fd6b045
commit
266816262d
|
@ -229,7 +229,7 @@ void Service::onAprsisDataAvailable()
|
|||
|
||||
bool Service::sendAX25ToLora(const AX25::Payload &payload)
|
||||
{
|
||||
byte buf[512];
|
||||
byte buf[CfgMaxAX25PayloadSize];
|
||||
int bytesWritten = payload.ToBinary(buf, sizeof(buf));
|
||||
if (bytesWritten <= 0) {
|
||||
Serial.println("Failed to serialize payload");
|
||||
|
|
|
@ -102,6 +102,7 @@ private:
|
|||
const int CfgPollDelayMs = 5;
|
||||
const int CfgLoraTxQueueSize = 4096;
|
||||
const int CfgWiFiConnRetryMaxTimes = 10;
|
||||
const int CfgMaxAX25PayloadSize = 512;
|
||||
|
||||
// csma paramters, use lower value for high traffic, use 255 for real time
|
||||
const long CfgCsmaPersistence = 100;
|
||||
|
|
Ładowanie…
Reference in New Issue