mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
exposable serialConfig
This commit is contained in:
parent
ff15fde88e
commit
27bc833110
@ -256,7 +256,12 @@ module.exports = function(RED) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node.send({payload: node.serialConfig});
|
let currentConfig = {};
|
||||||
|
configProps.map((p) => {
|
||||||
|
currentConfig[p] = node.serialConfig[p];
|
||||||
|
});
|
||||||
|
currentConfig.enable = node.serialConfig.enable;
|
||||||
|
node.send({payload: currentConfig});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("serial control", PortSelectNode);
|
RED.nodes.registerType("serial control", PortSelectNode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user