Skip to content

Commit

Permalink
Increase MQTT buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpirihi committed Dec 30, 2022
1 parent 8ebe0ed commit 19436b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mqtt/MQTT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ void MQTT::reconnect()
serverAddr = server.c_str();
}
pubSub.setServer(serverAddr, serverPort);
pubSub.setBufferSize(512);

DEBUG_MSG("Connecting to MQTT server %s, port: %d, username: %s, password: %s\n", serverAddr, serverPort, mqttUsername, mqttPassword);
auto myStatus = (statusTopic + owner.id);
Expand Down

0 comments on commit 19436b7

Please sign in to comment.