# MQTT IN dynamic subscription mode add msg.qos

**URL:** <https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738>\
**Category:** Feature Requests\
**Created:** [9 November 2023 10:59 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738 "2023-11-09T10:59:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [9 November 2023 10:59 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738/1 "2023-11-09T10:59:24Z")

</div>

Standard default is QoS2 set in node config  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11e52a2f9c38f8fc144f0eaa6fda9e88a057e669.png)

but option not available in Dynamic mode  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b86a6eaf10e414041fc8dc1cc309bd81688ab391.png)

and it turns out it still defaults to QoS 2

Even adding a change node before the MQTT IN node in dynamic mode and setting msg.qos to 0 makes no diff

I found this out when looking at subscribe packets with my fun MQTT broker and noticed difference between a subscribe from a NR instance and one from an ESP32 (which only does QoS 0)  
_Note: last byte hold the requested QoS of the subscriber_

I'm sure we can all live with this 🙂 but just putting it out there

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [9 November 2023 11:19 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738/2 "2023-11-09T11:19:29Z")

</div>

From help text

> For the `"subscribe"` and `"unsubscribe"` actions, this property provides the topic. It can be set as either:

> - a String containing the topic filter
> - an Object containing `topic` and `qos` properties
> - an array of either strings or objects to handle multiple topics in one

So as subscription is dynamic , you would set the QoS using the object.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [9 November 2023 11:39 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738/3 "2023-11-09T11:39:57Z")

</div>

Documentation? That I could read?? #WhoKnew 🙂

Ta

I'll change this into a feature request then that msg.qos (if set) is used

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74d9ed94c652ed610d9fd4fbfb427c00a0171e27.png)

instead/as well as

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46458071ad9db48263f0cea87a9367bf8741f04c.png)

[edit] I also think the default should be QoS 0 if nothing set rather than 2 but I can see why it currently defaults to 2

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [9 November 2023 11:44 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738/4 "2023-11-09T11:44:00Z")

</div>

> [@cymplecy](#):
>
> I'll change this into a feature request then that msg.qos (if set) is used

Don't forget to update title and change category of the topic, or are you posting a new topic?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [9 November 2023 11:52 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738/5 "2023-11-09T11:52:59Z")

</div>

I'm stopping while behind - feel free to change it 🙂

---

<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:** [23 November 2023 11:53 UTC](https://discourse.nodered.org/t/mqtt-in-dynamic-subscription-mode-add-msg-qos/82738/6 "2023-11-23T11:53:15Z")

</div>

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