exposable serialConfig

This commit is contained in:
Yoonseok Hur 2023-11-22 20:16:20 +09:00
parent ff15fde88e
commit 27bc833110

View File

@ -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);