Skip to content

Commit

Permalink
Update ThingsBoard.h
Browse files Browse the repository at this point in the history
get_send_buffer_size
  • Loading branch information
iwas108 authored Jan 19, 2025
1 parent 945965c commit 1a0170b
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 1a0170b

Please sign in to comment.