mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-01-28 23:06:16 +00:00
continuing
This commit is contained in:
parent
96aafb1e07
commit
a4b8d91c5b
@ -27,7 +27,7 @@ var bluetest = module.exports = function(options) {
|
|||||||
|
|
||||||
|
|
||||||
core.gattConnected = function() {
|
core.gattConnected = function() {
|
||||||
|
logger.debug('Gatt connected!!!!!');
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ var bluetest = module.exports = function(options) {
|
|||||||
logger.info(`stdout: ${data}`);
|
logger.info(`stdout: ${data}`);
|
||||||
|
|
||||||
if (data.indexOf('Connection successful') > -1) {
|
if (data.indexOf('Connection successful') > -1) {
|
||||||
logger.debug('Gatt connected!!!!!');
|
|
||||||
busEmitter.emit('connected');
|
busEmitter.emit('connected');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -113,7 +113,7 @@ var bluetest = module.exports = function(options) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
busEmitter.on('connected', core.gattConnected);
|
||||||
core.init(options);
|
core.init(options);
|
||||||
};
|
};
|
||||||
util.inherits(bluetest, EventEmitter);
|
util.inherits(bluetest, EventEmitter);
|
||||||
|
Loading…
Reference in New Issue
Block a user