In the javascript file asociated with your node I have an asyncronous called, so I must use the send fuction of the node object to call the next node, i obtain an error because the node object is undefined always.
This is my code:
Device.find( { where: { deviceHubId: '566d85a22b937b4350d88d19' }, include: 'deviceType' }, function(err, devices) {
if (err) return err;
msg.payload = devices;
node.send(msg);
});
return;
The same code is tested inside a function node and the result is ok, but if use your node with the same code the node object is undefined and crash.
Regards.
In the javascript file asociated with your node I have an asyncronous called, so I must use the send fuction of the node object to call the next node, i obtain an error because the node object is undefined always.
This is my code:
The same code is tested inside a function node and the result is ok, but if use your node with the same code the node object is undefined and crash.
Regards.