From ba91774539deaa6f2b744784f301c6c8ebf50123 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 31 Oct 2024 05:49:20 -0500 Subject: [PATCH 1/5] Switch to actually maintained thingsboard pubsubclient --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 2e3ee56f95..d47e87ac3b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -119,7 +119,7 @@ build_src_filter = ${env.build_src_filter} - ; Common libs for communicating over TCP/IP networks such as MQTT [networking_base] lib_deps = - knolleary/PubSubClient@^2.8 + thingsboard/PubSubClient@^2.10 arduino-libraries/NTPClient@^3.1.0 arcao/Syslog@^2.0.0 From ef4f9f749549bac1514880d9d8c02c68880cc5f4 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 31 Oct 2024 05:50:41 -0500 Subject: [PATCH 2/5] .0 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index d47e87ac3b..a911f198a9 100644 --- a/platformio.ini +++ b/platformio.ini @@ -119,7 +119,7 @@ build_src_filter = ${env.build_src_filter} - ; Common libs for communicating over TCP/IP networks such as MQTT [networking_base] lib_deps = - thingsboard/PubSubClient@^2.10 + thingsboard/PubSubClient@^2.10.0 arduino-libraries/NTPClient@^3.1.0 arcao/Syslog@^2.0.0 From 3449b63dea7f2df63f5121d156315a835fdca6f0 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 31 Oct 2024 06:01:24 -0500 Subject: [PATCH 3/5] TBPubSubClient --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index a911f198a9..cb37e30ace 100644 --- a/platformio.ini +++ b/platformio.ini @@ -119,7 +119,7 @@ build_src_filter = ${env.build_src_filter} - ; Common libs for communicating over TCP/IP networks such as MQTT [networking_base] lib_deps = - thingsboard/PubSubClient@^2.10.0 + thingsboard/TBPubSubClient@^2.10.0 arduino-libraries/NTPClient@^3.1.0 arcao/Syslog@^2.0.0 From e0a39bf493a9f7e6b064c205e2f894d3651ccd8c Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Sat, 21 Dec 2024 13:28:40 +1100 Subject: [PATCH 4/5] SetBufferSize is split into Send and Receive. --- platformio.ini | 3 +-- src/mqtt/MQTT.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index a6d6427570..6f18b5385a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -116,8 +116,7 @@ build_src_filter = ${env.build_src_filter} - ; 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/NTPClient@3.1.0 arcao/Syslog@2.0.0 diff --git a/src/mqtt/MQTT.cpp b/src/mqtt/MQTT.cpp index 7b15e99f3d..1b708ddcba 100644 --- a/src/mqtt/MQTT.cpp +++ b/src/mqtt/MQTT.cpp @@ -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); @@ -748,4 +748,4 @@ void MQTT::perhapsReportToMap() // Update the last report time last_report_to_map = millis(); -} +} \ No newline at end of file From bd970a2dfdffd74940ee2cb09b8fffbdf3be5d38 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Fri, 3 Jan 2025 14:34:38 +0800 Subject: [PATCH 5/5] Update TBPubSubClient to 2.11 --- platformio.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 85c8bff69d..dd63b23111 100644 --- a/platformio.ini +++ b/platformio.ini @@ -117,7 +117,7 @@ build_src_filter = ${env.build_src_filter} - ; Common libs for communicating over TCP/IP networks such as MQTT [networking_base] lib_deps = - thingsboard/TBPubSubClient@^2.10.0 + thingsboard/TBPubSubClient@^2.11.0 arduino-libraries/NTPClient@3.1.0 arcao/Syslog@2.0.0 @@ -164,4 +164,4 @@ lib_deps = robtillaart/INA226@0.6.0 ; Health Sensor Libraries - sparkfun/SparkFun MAX3010x Pulse and Proximity Sensor Library@1.1.2 \ No newline at end of file + sparkfun/SparkFun MAX3010x Pulse and Proximity Sensor Library@1.1.2