Skip to content

Commit

Permalink
Update pubsubclient to released version 2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Dec 9, 2024
1 parent 4eda051 commit a56ea52
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 82 deletions.
2 changes: 1 addition & 1 deletion BSB_LAN/include/mqtt_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ bool mqtt_connect() {
if(MQTTPubSubClient == NULL) {
mqtt_client= new ComClient();
MQTTPubSubClient = new PubSubClient(mqtt_client[0]);
MQTTPubSubClient->setBufferSize(2048);
MQTTPubSubClient->setBufferSize(2048, 2048);
MQTTPubSubClient->setKeepAlive(120); // raise to higher value so broker does not disconnect on latency
mqtt_reconnect_timer = 0;
first_connect = true;
Expand Down
Loading

0 comments on commit a56ea52

Please sign in to comment.