1
0
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:
Steve-Mcl 2020-10-10 10:56:10 +01:00
parent 33bb86cbcf
commit 38649de85f

View File

@ -393,6 +393,7 @@ module.exports = function(RED) {
if (node.subscriptions[s].hasOwnProperty(r)) {
qos = Math.max(qos,node.subscriptions[s][r].qos);
_options = node.subscriptions[s][r].options;
debug(`MQTT: Adding handler for ${r} to ${s}`);
node.client.on('message',node.subscriptions[s][r].handler);
}
}