Skip to content

Commit

Permalink
SetBufferSize is split into Send and Receive.
Browse files Browse the repository at this point in the history
  • Loading branch information
fifieldt committed Dec 21, 2024
1 parent b42bf9b commit e0a39bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
arcao/[email protected]

Expand Down
4 changes: 2 additions & 2 deletions src/mqtt/MQTT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -748,4 +748,4 @@ void MQTT::perhapsReportToMap()

// Update the last report time
last_report_to_map = millis();
}
}

0 comments on commit e0a39bf

Please sign in to comment.