ahnstar
ahnstar

Reputation: 55

What's the maximum size of a image to send using MQTT

I'm trying to send some images using MQTT in two R-pi. I wonder what's the maximum size of image to send. I think 1MB is the maximum size however, 26.5KB image could not be sended. Please give an answer of my question thank you.

Upvotes: 1

Views: 2357

Answers (1)

Destrif
Destrif

Reputation: 2134

MQTT doc Mosquito:

message_size_limit limit

This option sets the maximum publish payload size that the broker will allow. Received messages that exceed this size will not be accepted by the broker. The default value is 0, which means that all valid MQTT messages are accepted. MQTT imposes a maximum payload size of 268435455 bytes.

From:

https://mosquitto.org/man/mosquitto-conf-5.html

Upvotes: 5

Related Questions