continuing

This commit is contained in:
Martin Donnelly 2016-07-06 14:24:59 +01:00
parent eb7e1e02f1
commit 7698595a60

View File

@ -28,6 +28,7 @@ var bluetest = module.exports = function(options) {
core.connectGatt = function() {
logger.info('trying to connect using gatttool');
var gatt = spawn('gatttool',['-I']);
var cStr;
gatt.on('error', function(err) {
logger.error(err);
});
@ -37,7 +38,8 @@ var bluetest = module.exports = function(options) {
});
logger.info('Trying to connect to ', core.mac);
//gatt.send();
cStr = 'connect ' + core.mac;
gatt.send(cStr);
};
core.init = function(options) {