zwave-js / node-red-contrib-zwave-js

The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
MIT License
47 stars 6 forks source link

[Feature]: Toggle message output for device nodes #85

Closed marcus-j-davies closed 3 years ago

marcus-j-davies commented 3 years ago

Contact Details (optional)

No response

What is your idea?

As titled

@crxporter

Any more details?

No response

Version

v4.1.0

Node-RED Version

1.3.x

What hardware are you seeing the problem on?

Other

Any code to add?

function FunctionNode(n) {
        RED.nodes.createNode(this,n);
        var node = this;
        node.name = n.name;
        node.func = n.func;
        node.outputs = n.outputs; <----------------------- HERE
        node.ini = n.initialize ? n.initialize.trim() : "";
        node.fin = n.finalize ? n.finalize.trim() : "";
        node.libs = n.libs || [];

        if (RED.settings.functionExternalModules === false && node.libs.length > 0) {
            throw new Error(RED._("function.error.externalModuleNotAllowed"));
        }
}