MQTT Disconnects When Sending Large JSON Payloads From Kepware IoT Gateway to ThingsBoard (250 Tags
Hi everyone,
I’m sending MQTT data from Kepware IoT Gateway to ThingsBoard. Everything works fine when I publish around 250 tags in a single JSON payload. But when I increase it to 500 tags, the MQTT client in Kepware starts connecting and disconnecting repeatedly, and the message never publishes.
I’m trying to figure out whether this limitation is coming from:
Kepware IoT Gateway’s MQTT Client Agent, or
ThingsBoard’s MQTT broker / MQTT transport,
or simply an MQTT payload size limit on either side.
What I’m seeing:
~250 tags → OK
~500 tags → Kepware repeatedly connects/disconnects
No clear error in Kepware UI
ThingsBoard logs show only connect/disconnect
Behavior suggests a payload or packet size limit
My questions:
Does ThingsBoard MQTT have a max payload or packet size limit?
Does Kepware IoT Gateway restrict MQTT message size?
Is this connect/disconnect loop typical when the payload is too large?
Is splitting tags into smaller groups the recommended approach?
Any insight from users who have handled large MQTT payloads between Kepware and ThingsBoard would be very helpful.
Thanks!


