mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-01-26 21:16:18 +00:00
continuing
This commit is contained in:
parent
7698595a60
commit
3ea2f14ef0
@ -6,8 +6,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
var cp = require('child_process');
|
||||
var spawn = cp.spawn;
|
||||
var fork = cp.fork;
|
||||
|
||||
var spawn = require('child_process').spawn;
|
||||
var EventEmitter = require('events');
|
||||
var busEmitter = new EventEmitter();
|
||||
|
||||
@ -27,7 +29,7 @@ var bluetest = module.exports = function(options) {
|
||||
|
||||
core.connectGatt = function() {
|
||||
logger.info('trying to connect using gatttool');
|
||||
var gatt = spawn('gatttool',['-I']);
|
||||
var gatt = fork('gatttool',['-I']);
|
||||
var cStr;
|
||||
gatt.on('error', function(err) {
|
||||
logger.error(err);
|
||||
|
Loading…
Reference in New Issue
Block a user