Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling example #000-arduino-send-telemetry #241

Open
ChrSchultz opened this issue Dec 26, 2024 · 1 comment
Open

Error compiling example #000-arduino-send-telemetry #241

ChrSchultz opened this issue Dec 26, 2024 · 1 comment

Comments

@ChrSchultz
Copy link
Contributor

ChrSchultz commented Dec 26, 2024

While compiling the arduino-send-telemetry scetch in platformio ide of vscode I got this error:
Using thingsbord sdk 0.15.0

.pio\libdeps\d1_mini_pro\ThingsBoard\src/ThingsBoard.h: In member function 'bool ThingsBoardSized<MaxResponse, MaxEndpointsAmount, Logger>::Send_Json(const char*, const ArduinoJson::V6215PB2::JsonDocument&, const size_t&)':
.pio\libdeps\d1_mini_pro\ThingsBoard\src/ThingsBoard.h:289:22: error: 'class IMQTT_Client' has no member named 'get_buffer_size'; did you mean 'set_buffer_size'?
  289 |         if (m_client.get_buffer_size() < json_size)  {
      |                      ^~~~~~~~~~~~~~~
      |                      set_buffer_size
@MathewHDYT
Copy link
Contributor

My bad I missed that call while adjusting the library to breaking changes in the API. To fix it simply replace the call with get_send_buffer_size. That should fix the compilation issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants