increased buffer size to 1024 (#5733)

This commit is contained in:
isseysandei
2025-01-03 18:35:34 +01:00
committed by GitHub
parent e1aaafb77a
commit 66a961cb75

View File

@@ -435,7 +435,7 @@ void MQTT::reconnect()
serverAddr = hostAndPort.first.c_str();
serverPort = hostAndPort.second;
pubSub.setServer(serverAddr, serverPort);
pubSub.setBufferSize(512);
pubSub.setBufferSize(1024);
LOG_INFO("Connect directly to MQTT server %s, port: %d, username: %s, password: %s", serverAddr, serverPort, mqttUsername,
mqttPassword);