mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
2b6661c4f2
commit
dd685209d9
@ -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);
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user