mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
parent
2b6661c4f2
commit
dd685209d9
@ -112,13 +112,13 @@ module.exports = function(RED) {
|
|||||||
var topic = node.topic;
|
var topic = node.topic;
|
||||||
if (topic === "") {
|
if (topic === "") {
|
||||||
if (msg.topic) {
|
if (msg.topic) {
|
||||||
node.topic = msg.topic;
|
topic = msg.topic;
|
||||||
} else {
|
} else {
|
||||||
node.warn("No topic set in MQ Light out node");
|
node.warn("No topic set in MQ Light out node");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sendClient.send(node.topic, msg.payload, function(err) {
|
sendClient.send(topic, msg.payload, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
node.error(err,msg);
|
node.error(err,msg);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-mqlight",
|
"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",
|
"description" : "A Node-RED node to send and receive message from IBM MQ Light",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"mqlight" : "1.0.x"
|
"mqlight" : "1.0.x"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user