MQTT long messages guarantees

daviherc
Posts: 10
Joined: Wed Apr 28, 2021 5:31 pm

MQTT long messages guarantees

Postby daviherc » Wed Sep 15, 2021 8:37 am

Hello all,

I am receiving a long message (~550kb) through MQTT, so I get a great amount of message pieces along ~20s. I get all these messages from the MQTT_EVENT_DATA event type.

Starting from the second piece of the message, there is no mqtt topic in the event object.

So I was wondering: is it guaranteed that the pieces of the same message will be in sequence, and any other message that might come would be received after the transfer of all the pieces?

To make it super clear, if I have message A, with pieces (a1,a2,a3,a4,a5,a6,a7) and message B with one piece (B1). If I send first A then B, would I be guaranteed to get (a1,a2,a3,a4,a5,a6,a7,B1) or could it be possible to receive (a1,a2,a3,B1,a4,a5,a6,a7)?

br10101
Posts: 15
Joined: Thu Nov 24, 2022 11:08 am

Re: MQTT long messages guarantees

Postby br10101 » Thu Mar 23, 2023 9:35 am

Same question here

Who is online

Users browsing this forum: No registered users and 127 guests