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

How to handle big jsons? #195

Open
jortega11 opened this issue Mar 14, 2024 · 1 comment
Open

How to handle big jsons? #195

jortega11 opened this issue Mar 14, 2024 · 1 comment

Comments

@jortega11
Copy link

I wanted to implement sending the telemetries with json documents because I want my device to be disconnected from the internet for a while in order to save power.

Currently, I am testing this feature in an ESP8266 board.

My problem is sending the json to Thingsboard, because if I disable sending the document, the device can handle it without any problem, but when I enable sending it to Thingsboard the ESP8266 is not able to handle more than 10 entries.

How could I improve this feature?

@MathewHDYT
Copy link
Contributor

MathewHDYT commented Mar 14, 2024

If you seperately send individual telemetry or attributes, they will always be sent, because they are sent as individual mqtt messages.

When sending more than 8 telemetry or attributes at once tough, the default internal buffer size of the PubSubClient is too small.

Simply read this section of the documentation. It explains what do to, to increase the buffersize so you can send more than 8 telemetry or attributes at once.

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