MQTT Publish Max size

Hi there, 

We are using the default Serial LTE Modem application (2.2.0) and mfw1.3.2 on the nrf9160 so that we can control the device from an external MCU.

We are publishing data using the MQTT client with the #XMQTTPUB AT command. According to the documentation, the max publish size is 1024 bytes when not publishing in datamode. However, we are publishing in datamode (leaving the msg string empty).

Could you please advise what the maximum transmit size is when MQTT publishing using datamode? We can test this experimentally, but actual hard information on the limitation of this would be great.

Is this limited by the network MTU at all, or is the MQTT client firmware designed that if the publish payload is larger than the MTU, the payload will be split up into multiple packets?

Regards,

Frikkie

Related