# Message packages not working as I thought. MQTT

**URL:** <https://discourse.nodered.org/t/message-packages-not-working-as-i-thought-mqtt/14903>\
**Category:** General\
**Created:** [29 August 2019 12:34 UTC](https://discourse.nodered.org/t/message-packages-not-working-as-i-thought-mqtt/14903 "2019-08-29T12:34:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 August 2019 12:40 UTC](https://discourse.nodered.org/t/message-packages-not-working-as-i-thought-mqtt/14903/2 "2019-08-29T12:40:18Z")

</div>

I'm stupid.

FAULT DISCOVERED!

The `CHANGE` node!

I set the `msg.payload` before I set the `msg.device`.

So when I look to set the `msg.device` (second change), there is nothing there because I just changed the `msg.payload`.

Be this a lesson for new people.  
If messing around with the `CHANGE` node:

**Modify the `msg.payload` LAST!**

---

_[View the full topic](https://discourse.nodered.org/t/message-packages-not-working-as-i-thought-mqtt/14903)._
