size of the messages

15 views
Skip to first unread message

maurycy szmurlo

unread,
May 11, 2021, 11:56:12 PM5/11/21
to vernemq-users
Hi

I'm evaluating MQTT with VerneMQ for a project since few days so sorry if the question is trivial. Provided that the length of the topic is T bytes and the length of the message is M bytes, what is the length of the total network message ?

Thanks in advance for your feedback

Maurycy


André Fatton

unread,
May 12, 2021, 3:16:23 AM5/12/21
to vernemq-users
Hi Maurycy,
For an MQTT PUBLISH frame you're looking at a 2 byte fixed header, a variable header and a payload.
https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718037 should help you. The fixed header indicates the remaining length. You can also use Wireshark (enabling MQTT parsing) to look into the MQTT frames.
André

maurycy szmurlo

unread,
May 12, 2021, 6:36:48 AM5/12/21
to vernemq-users
clear.
thanks
Reply all
Reply to author
Forward
0 new messages