validaz non va

master
Pietro Brenna 2021-11-24 12:06:56 +01:00
parent c6a299c6bf
commit cd6cbf116b
1 changed files with 2 additions and 2 deletions

View File

@ -182,13 +182,13 @@ module.exports = function (RED) {
RED.nodes.createNode(this, config);
var node = this;
node.on('input', function (msg) {
try {
/*try {
write_msg.assert(msg);
} catch (e) {
let errors = write_msg.validate(msg);
node.error("Msg non valido: " + errors.map(x => x.path + ": " + x.message).join("\n"));
return;
}
}*/
s7node_from_plc(msg.plc).then(s7conn => {
return s7_write(msg.plc, s7conn, msg.payload.variable, [msg.payload.value]);
}).then(() => {