mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
debugging
This commit is contained in:
parent
33bb86cbcf
commit
38649de85f
@ -393,6 +393,7 @@ module.exports = function(RED) {
|
|||||||
if (node.subscriptions[s].hasOwnProperty(r)) {
|
if (node.subscriptions[s].hasOwnProperty(r)) {
|
||||||
qos = Math.max(qos,node.subscriptions[s][r].qos);
|
qos = Math.max(qos,node.subscriptions[s][r].qos);
|
||||||
_options = node.subscriptions[s][r].options;
|
_options = node.subscriptions[s][r].options;
|
||||||
|
debug(`MQTT: Adding handler for ${r} to ${s}`);
|
||||||
node.client.on('message',node.subscriptions[s][r].handler);
|
node.client.on('message',node.subscriptions[s][r].handler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user