Is it possible to change config node properties from within a flow?

Hi all,
I would like to change a property of the config node during runtime.
The idea is that the node can be reconfigured during runtime and the values should be persisted.

Let's take the following use-case: I want to turn on the logging flag during runtime using a msg:

msg.payload.logging = true;

This message is received in my node and the logging flag is written to the config node.

this.on('input', function (msg) {
    node.config.logging = msg.payload.logging;
    // and now???
}

So far so good, that works during runtime, but the changes are lost when I restart node-red.

Question:
How can I make sure that the changed logging flag is persisted?

Any help is welcome!
/KH

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