MQTT message exceeds the maximum message, message size length

In the project, mqtt is contacted by emqtt , when the number of messages is too large, you will be prompted

Disconnected (32109) -
	at java.util.concurrent.Executors$
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
	at java.util.concurrent.ScheduledThreadPoolExecutor$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by:
	at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(
	... 8 more

I've tested countless times, and it turns out that it's not the cause of disconnection. As long as the data sent is less than 60kb, it's OK. It's measured in a little bit of database.

But this can't solve my problem. I need to send a message about 130KB, which contains the base64 image problem.

Find documents on the official website

MQTT Maximum message size:

mqtt.max_packet_size = 1MB

Then I went to \ emqttd\etc\emq.conf and found the size.

## Maximum MQTT packet size allowed.
## Value: Bytes
## Default: 64K
mqtt.max_packet_size = 64KB

The actual limit is 64KB. Change the value to restart.

All right. Record it here.

Keywords: Java Eclipse less Database

Added by peanutbutter on Sat, 26 Oct 2019 17:33:34 +0300