# MQTT 5 message properties

**URL:** <https://discourse.nodered.org/t/mqtt-5-message-properties/40732>\
**Category:** General\
**Created:** [10 February 2021 08:35 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732 "2021-02-10T08:35:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tetrived](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Post date:** [10 February 2021 08:35 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/1 "2021-02-10T08:35:35Z")

</div>

I am working with Node red 1.2 latest release. When I am publish message to MQTT broker v5 content type and payloadformatIndicator property being passed as null. I could not see any option to set this properties in Node-red tool. I already tried with payload type JSON but it doesn't seem to be setting up content-type property

What are the ways to set content-type and payloadformatindicator property with node-red tool ?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 February 2021 08:48 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/2 "2021-02-10T08:48:04Z")

</div>

The existing mqtt node only supports MQTT 3.1. There is an outstanding pull request to add v5 support

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 February 2021 09:05 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/3 "2021-02-10T09:05:41Z")

</div>

Hi @tetrived as @dceejay says, MQTT V5 support is not ready but if you are willing to feedback, I can provide you with instructions to run the node-red branch with MQTT v5 support?

To answer your questions, the MQTT v5 branch does indeed support content-type and payloadformatindicator (and user properties and alias and correlation data)

 ![2020-10-14_13-57-56](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/e/be47a3f789f8b1536f397bf0f97cbbba1a16ca65.gif)

---

<div class="post-metadata">

**Author:** ![tetrived](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Post date:** [10 February 2021 09:27 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/4 "2021-02-10T09:27:10Z")

</div>

Hello Steve,

That would be great help. Could you please provide me the branch and build information ?

Thanks again

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 February 2021 09:35 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/5 "2021-02-10T09:35:02Z")

</div>

Hi

You will find some implementation details [here](https://discourse.nodered.org/t/node-red-mqtt-5-support/17847/24)

As for running the MQTT 5 branch...

**first ensure the directory you start from does not already have a sub-directory of `node-red` as this will be created when you git clone**

1. `git clone https://github.com/Steve-Mcl/node-red.git`
2. `git checkout mqtt5`
3. cd into the newly created `node-red` directory
4. `npm install`
5. `npm run build`
6. `npm run start`

please feedback your thoughts and experiences - it could be vital in getting this merged.

Thanks.

---

<div class="post-metadata">

**Author:** ![tetrived](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Post date:** [18 February 2021 06:55 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/6 "2021-02-18T06:55:47Z")

</div>

thanks Steve. it is working

---

<div class="post-metadata">

**Author:** ![tetrived](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Post date:** [19 February 2021 05:58 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/7 "2021-02-19T05:58:05Z")

</div>

Hello,

When are we planning to release this new release with mqtt v5 properties ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 February 2021 09:13 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/8 "2021-02-19T09:13:53Z")

</div>

It is being worked on - hopefully soon - depends.

What part of MQTT V5 is it you are really needing? User Properties? Response Topic? Other?

It is important you let me know.

Ta.

---

<div class="post-metadata">

**Author:** ![tetrived](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Post date:** [22 February 2021 10:52 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/9 "2021-02-22T10:52:22Z")

</div>

Hello Steve,

We are also looking for way to pass content type and format i.e. UTF8 as a part of Last Will , Disconnect and birth message of node-red .

We are using the same build you have provided for mqtt5 properties, but it won't pass this properties for last will and birth message.

Is there any way or solution to this ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 February 2021 11:08 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/10 "2021-02-22T11:08:38Z")

</div>

> [@tetrived](#):
>
> We are using the same build you have provided for mqtt5 properties, but it won't pass this properties for last will and birth message

That's not implemented (yet). And with the code almost ready for inclusion in next beta I might not have time to prepare it.

I will consider your request later tonight.

---

<div class="post-metadata">

**Author:** ![tetrived](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tetrived](https://discourse.nodered.org/u/tetrived)\
**Post date:** [2 March 2021 16:18 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/11 "2021-03-02T16:18:13Z")

</div>

Hello Steve,

Any updates on when are we going to release 1.3 with mqtt5 updates ?

Thanks,  
Tejas

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 March 2021 16:25 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/12 "2021-03-02T16:25:56Z")

</div>

Hi

MQTT V5 is merged into dev branch and will be present in V1.3 beta but i am not in a position to comment on when it will drop. All I can say is keep your eyes on the forum over the coming days.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 March 2021 18:54 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/13 "2021-03-02T18:54:33Z")

</div>

> [@Steve-Mcl](#):
>
> over the coming days.

sounds about right 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 May 2021 18:54 UTC](https://discourse.nodered.org/t/mqtt-5-message-properties/40732/14 "2021-05-01T18:54:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
