1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

fix MQlight out topic to close #251

Thanks @mkpurcell
This commit is contained in:
Dave Conway-Jones 2016-11-10 20:02:24 +00:00
parent 2b6661c4f2
commit dd685209d9
2 changed files with 3 additions and 3 deletions

View File

@ -112,13 +112,13 @@ module.exports = function(RED) {
var topic = node.topic;
if (topic === "") {
if (msg.topic) {
node.topic = msg.topic;
topic = msg.topic;
} else {
node.warn("No topic set in MQ Light out node");
return;
}
}
sendClient.send(node.topic, msg.payload, function(err) {
sendClient.send(topic, msg.payload, function(err) {
if (err) {
node.error(err,msg);
}

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-mqlight",
"version" : "0.0.9",
"version" : "0.0.10",
"description" : "A Node-RED node to send and receive message from IBM MQ Light",
"dependencies" : {
"mqlight" : "1.0.x"