From 9a0747f9cff4198ed89fb6fcd502785ce5f04809 Mon Sep 17 00:00:00 2001 From: Christoph Schultz Date: Sat, 28 Dec 2024 13:46:53 +0100 Subject: [PATCH] Update ThingsBoard.h altered m_client.get_buffer_size() to m_client.get_send_buffer_size() due to --- src/ThingsBoard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ThingsBoard.h b/src/ThingsBoard.h index 1862d151..be0ccd86 100644 --- a/src/ThingsBoard.h +++ b/src/ThingsBoard.h @@ -286,7 +286,7 @@ class ThingsBoardSized { #if THINGSBOARD_ENABLE_STREAM_UTILS // Check if the size of the given message would be too big for the actual client, // if it is utilize the serialize json work around, so that the internal client buffer can be circumvented - if (m_client.get_buffer_size() < json_size) { + if (m_client.get_send_buffer_size() < json_size) { #if THINGSBOARD_ENABLE_DEBUG Logger::printfln(SEND_MESSAGE, topic, SEND_SERIALIZED); #endif // THINGSBOARD_ENABLE_DEBUG