node-red-contrib-omron-fins
Advanced tools
Comparing version 0.3.0-beta.1 to 0.3.0-beta.2
@@ -40,4 +40,4 @@ /* | ||
node.outputFormatType = config.outputFormatType || "list"; | ||
node.outputProperty = config.outputProperty || "payload"; | ||
node.outputPropertyType = config.outputPropertyType || "str"; | ||
node.msgProperty = config.msgProperty || "payload"; | ||
node.msgPropertyType = config.msgPropertyType || "str"; | ||
node.connectionConfig = RED.nodes.getNode(node.connection); | ||
@@ -138,7 +138,7 @@ | ||
//set the output property | ||
var outputProperty = RED.util.evaluateNodeProperty(node.outputProperty, node.outputPropertyType, node, origInputMsg); | ||
RED.util.setObjectProperty(origInputMsg, outputProperty, value, true); | ||
RED.util.setObjectProperty(origInputMsg, node.msgProperty, value, true); | ||
//include additional detail in msg.fins | ||
origInputMsg.fins = {}; | ||
origInputMsg.fins.name = node.name; //node name for user logging / routing | ||
origInputMsg.fins.request = { | ||
@@ -145,0 +145,0 @@ address: sequence.request.address, |
@@ -36,4 +36,4 @@ /* | ||
node.dataType = config.dataType || "msg"; | ||
node.outputProperty = config.outputProperty || "payload"; | ||
node.outputPropertyType = config.outputPropertyType || "str"; | ||
node.msgProperty = config.msgProperty || "payload"; | ||
node.msgPropertyType = config.msgPropertyType || "str"; | ||
node.connectionConfig = RED.nodes.getNode(node.connection); | ||
@@ -100,7 +100,7 @@ if (this.connectionConfig) { | ||
//set the output property | ||
var outputProperty = RED.util.evaluateNodeProperty(node.outputProperty, node.outputPropertyType, node, origInputMsg); | ||
RED.util.setObjectProperty(origInputMsg, outputProperty, sequence.sid || 0, true); | ||
RED.util.setObjectProperty(origInputMsg, node.msgProperty, sequence.sid || 0, true); | ||
//include additional detail in msg.fins | ||
origInputMsg.fins = {}; | ||
origInputMsg.fins.name = node.name; //node name for user logging / routing | ||
origInputMsg.fins.request = { | ||
@@ -107,0 +107,0 @@ address: sequence.request.address, |
{ | ||
"name": "node-red-contrib-omron-fins", | ||
"version": "0.3.0-beta.1", | ||
"version": "0.3.0-beta.2", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Steve-Mcl", |
Sorry, the diff of this file is not supported yet
191398