mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-01-26 20:56:17 +00:00
continuing
This commit is contained in:
parent
3ea2f14ef0
commit
2d0b31e48b
@ -29,7 +29,7 @@ var bluetest = module.exports = function(options) {
|
||||
|
||||
core.connectGatt = function() {
|
||||
logger.info('trying to connect using gatttool');
|
||||
var gatt = fork('gatttool',['-I']);
|
||||
var gatt = spawn('gatttool',['-I']);
|
||||
var cStr;
|
||||
gatt.on('error', function(err) {
|
||||
logger.error(err);
|
||||
@ -40,8 +40,8 @@ var bluetest = module.exports = function(options) {
|
||||
});
|
||||
|
||||
logger.info('Trying to connect to ', core.mac);
|
||||
cStr = 'connect ' + core.mac;
|
||||
gatt.send(cStr);
|
||||
cStr = 'connect ' + core.mac + '\n';
|
||||
gatt.stdin.write(cStr);
|
||||
};
|
||||
|
||||
core.init = function(options) {
|
||||
|
Loading…
Reference in New Issue
Block a user