有的时候我们需要通过MQTT进行一些二进制的传送,那么MQTT进行二进制的传送的时候,最大支持多少个字节?正确的答案是268435455 bytes,Mosquito的MQTT服务器里面的一个配置文件就是这样说的。
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.