continuing

This commit is contained in:
Martin Donnelly 2016-07-06 14:13:26 +01:00
parent 97b407390f
commit 00af6eaf5b

View File

@ -21,6 +21,16 @@ var bluetest = module.exports = function(options) {
var core = {};
core.connectGatt = function() {
logger.info('trying to connect using gatttool');
var gatt = spawn('gatttool -I');
gatt.on('exit', function(code) {
logger.debug('gatt exit code', code);
});
};
core.init = function(options) {
var _mac;
@ -52,6 +62,8 @@ var bluetest = module.exports = function(options) {
} else {
core.connectGatt();
}