SetBufferSize is split into Send and Receive.

This commit is contained in:
Tom Fifield 2024-12-21 13:28:40 +11:00
parent b42bf9b0a7
commit e0a39bf493
2 changed files with 3 additions and 4 deletions

View File

@ -116,8 +116,7 @@ build_src_filter = ${env.build_src_filter} -<platform/portduino/>
; Common libs for communicating over TCP/IP networks such as MQTT
[networking_base]
lib_deps =
thingsboard/TBPubSubClient@^2.10.0
thingsboard/TBPubSubClient@^2.10.0
arduino-libraries/NTPClient@3.1.0
arcao/Syslog@2.0.0

View File

@ -427,7 +427,7 @@ void MQTT::reconnect()
serverAddr = server.c_str();
}
pubSub.setServer(serverAddr, serverPort);
pubSub.setBufferSize(512);
pubSub.setBufferSize(512, 512);
LOG_INFO("Connect directly to MQTT server %s, port: %d, username: %s, password: %s", serverAddr, serverPort, mqttUsername,
mqttPassword);
@ -748,4 +748,4 @@ void MQTT::perhapsReportToMap()
// Update the last report time
last_report_to_map = millis();
}
}