diff --git a/lib/office/officeController.js b/lib/office/officeController.js index 7bbf62c..454d4d8 100644 --- a/lib/office/officeController.js +++ b/lib/office/officeController.js @@ -81,6 +81,8 @@ var officeController = function(neweventbus) { logger.debug(this.todaysList);*/ this.setupNextMeeting(todaysList); }); + + this.mqtt = new mqttClient.mqttClient(); //This.timer; @@ -122,6 +124,12 @@ var officeController = function(neweventbus) { this.announceMeetingEnd(meeting); }); + + var timmy = setTimeout(function() { + var now = new Date(); + + this.announceMeetingEnd({uid: 'bob', summary: 'Test message - ' + now.toISOString()}); + }.bind(this),60000); }; officeController.prototype.sendiOSAPN = function(packet) { @@ -156,7 +164,7 @@ officeController.prototype.announceMeetingEnd = function(meeting) { dry_run: false }); - this.sendiOSAPN(packet); + this.sendiOSAPN(packet); sender.sendMessage(message.toJSON(), '', true, function(err, data) { if (!err) {