mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-01-28 23:36:17 +00:00
continuing
This commit is contained in:
parent
eb7e1e02f1
commit
7698595a60
@ -28,6 +28,7 @@ var bluetest = module.exports = function(options) {
|
|||||||
core.connectGatt = function() {
|
core.connectGatt = function() {
|
||||||
logger.info('trying to connect using gatttool');
|
logger.info('trying to connect using gatttool');
|
||||||
var gatt = spawn('gatttool',['-I']);
|
var gatt = spawn('gatttool',['-I']);
|
||||||
|
var cStr;
|
||||||
gatt.on('error', function(err) {
|
gatt.on('error', function(err) {
|
||||||
logger.error(err);
|
logger.error(err);
|
||||||
});
|
});
|
||||||
@ -37,7 +38,8 @@ var bluetest = module.exports = function(options) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
logger.info('Trying to connect to ', core.mac);
|
logger.info('Trying to connect to ', core.mac);
|
||||||
//gatt.send();
|
cStr = 'connect ' + core.mac;
|
||||||
|
gatt.send(cStr);
|
||||||
};
|
};
|
||||||
|
|
||||||
core.init = function(options) {
|
core.init = function(options) {
|
||||||
|
Loading…
Reference in New Issue
Block a user