knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

Missing data in first n-1 json data if publish n json data #974

Open MSKoWa opened 1 year ago

MSKoWa commented 1 year ago

Hello there,

I do have a problem publishing multiple files one after another with the PubSubClient. I do have 5 JSON files that I would like to sent one after another to the server by publishing them to a topic.

The first 4 files do reach the server but having about 430 bytes (way to less for their acutal file size, must have 2000-3000 bytes, yes I increased the size of buffer). The last one reaches the server completely (about 2500 bytes).

Does anyone know what can cause this issue? Am I missing something when I publish multiple files "at once"?

Thanks in advance