fix exec missing addpayload,

improve switch null test (to include null object)
check mqtt has payload before sending
This commit is contained in:
dceejay
2015-04-14 17:15:56 +01:00
parent 87e537da90
commit d7bdcd69fc
3 changed files with 4 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ module.exports = function(RED) {
function ExecNode(n) {
RED.nodes.createNode(this,n);
this.cmd = (n.command || "").trim();
if (n.addpay == undefined) { n.addpay = true; }
this.addpay = n.addpay;
this.append = (n.append || "").trim();
this.useSpawn = n.useSpawn;