Skip to content

Commit

Permalink
Update ThingsBoard.h
Browse files Browse the repository at this point in the history
altered m_client.get_buffer_size() to m_client.get_send_buffer_size() due to
  • Loading branch information
ChrSchultz authored Dec 28, 2024
1 parent 8a4a5c8 commit 9a0747f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ThingsBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a0747f

Please sign in to comment.