# How do you change the properties of a node while the application is running?

**URL:** https://discourse.nodered.org/t/how-do-you-change-the-properties-of-a-node-while-the-application-is-running/60230
**Category:** General
**Created:** [23 March 2022 10:11 UTC](https://discourse.nodered.org/t/how-do-you-change-the-properties-of-a-node-while-the-application-is-running/60230 "2022-03-23T10:11:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chappo\_2](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@chappo\_2](https://discourse.nodered.org/u/chappo_2)
#### Post date: [23 March 2022 10:11 UTC](https://discourse.nodered.org/t/how-do-you-change-the-properties-of-a-node-while-the-application-is-running/60230/1 "2022-03-23T10:11:44Z")

</div>

I am using the 'serial in' (node-red-node-serialport) node and would like to change the serial port settings based on information recieved over mqtt.

However, I do not know a way to change the properties of a node while the application is running. Is this possible to do? If so, how is it done?

![Screenshot 2022-03-23 210441](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d1ece79f6f1ec121b5e9cad4e9efd70c344ce17.png)

---

<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: [23 March 2022 10:39 UTC](https://discourse.nodered.org/t/how-do-you-change-the-properties-of-a-node-while-the-application-is-running/60230/2 "2022-03-23T10:39:24Z")

</div>

It is not possible at this time.

The best you can so for now is...

- have multiple serial nodes setup with a selection of settings & route messages to the desired serial node based on the value set in the MQTT message  
OR
- save the MQTT value to ENV VARS & use ENV VARs for the serial port settings (NOTE: env vars are only read on start up so this solution would require you to restart node-red after a change)

How many variations do you expect?

---

<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: [22 May 2022 10:39 UTC](https://discourse.nodered.org/t/how-do-you-change-the-properties-of-a-node-while-the-application-is-running/60230/3 "2022-05-22T10:39:47Z")

</div>

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