Regarding MQTT Upload Speed

Hello!

I am trying to upload 120KB of data through 2 protocols: https and mqtt+tls. Both the cases have same configurations enabled in the context of wifi, net mgmt, network buffers and mbedtls heap. 

My team wants to shift from https to mqtt but I am facing a challenge.

In the https case, i am able to upload 120KB of data(through chunking in 3kB) wihin 4-5 seconds.
Whereas in the case of MQTT, it is happening in 11-12 seconds with the same chunking and router/wifi_speed.

My question is why MQTT is this slow as compared to HTTPS protocol in uploading this amount of data.

The system I am using is nrf5340+nrf7002.

I have also attached my prj.conf files for both https and mqtt instances. Please have a look and let me know if I can speed up my MQTT upload. Feel free to ask any questions!

Regards
Aarnav

HTTPS instance prj.conf

/cfs-file/__key/communityserver-discussions-components-files/4/5076.prj.conf

MQTT instance prj.conf

/cfs-file/__key/communityserver-discussions-components-files/4/5076.prj.conf

Parents Reply Children
Related