increased buffer size to 1024

This commit is contained in:
issey sandei 2025-01-03 16:37:48 +00:00
parent e1aaafb77a
commit b563da634f

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);