continuing

This commit is contained in:
Martin Donnelly 2016-07-06 14:58:05 +01:00
parent 96aafb1e07
commit a4b8d91c5b

View File

@ -27,7 +27,7 @@ var bluetest = module.exports = function(options) {
core.gattConnected = function() {
logger.debug('Gatt connected!!!!!');
};
@ -52,7 +52,7 @@ var bluetest = module.exports = function(options) {
logger.info(`stdout: ${data}`);
if (data.indexOf('Connection successful') > -1) {
logger.debug('Gatt connected!!!!!');
busEmitter.emit('connected');
}
});
@ -113,7 +113,7 @@ var bluetest = module.exports = function(options) {
};
busEmitter.on('connected', core.gattConnected);
core.init(options);
};
util.inherits(bluetest, EventEmitter);