diff --git a/app.js b/app.js index 9b86053..ec3941b 100644 --- a/app.js +++ b/app.js @@ -61,9 +61,10 @@ var settings = { expiresAfter: 4 * 7 * 24 * 3600, // 4 weeks } }; -var push = new require('node-pushnotifications')(settings); +var push = require('node-pushnotifications')(settings); +push mqttConnect.setEmitter(busEmitter); mqttConnect.doConnection();