How to handle big jsons?
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?
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.
@imbeacon This issue can be closed, because it is both documented in the Readme.MD and most methods give a warning if too many key value pairs are attempted to be sent.