debugging

This commit is contained in:
Steve-Mcl 2020-10-10 10:56:10 +01:00
parent 33bb86cbcf
commit 38649de85f
1 changed files with 1 additions and 0 deletions

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);
}
}