mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
a57de3d8f2
commit
3087e8e2a1
@ -60,8 +60,10 @@ module.exports = function(RED) {
|
|||||||
line += data.toString();
|
line += data.toString();
|
||||||
var bits = line.split("\n");
|
var bits = line.split("\n");
|
||||||
while (bits.length > 1) {
|
while (bits.length > 1) {
|
||||||
lastmsg.payload = bits.shift();
|
var m = RED.util.cloneMessage(lastmsg);
|
||||||
node.send([lastmsg,null,null]);
|
m.payload = bits.shift();
|
||||||
|
console.log(m);
|
||||||
|
node.send([m,null,null]);
|
||||||
}
|
}
|
||||||
line = bits[0];
|
line = bits[0];
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-daemon",
|
"name" : "node-red-node-daemon",
|
||||||
"version" : "0.0.25",
|
"version" : "0.0.26",
|
||||||
"description" : "A Node-RED node that runs and monitors a long running system command.",
|
"description" : "A Node-RED node that runs and monitors a long running system command.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user