mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-02-04 09:10:15 +00:00
continuing
This commit is contained in:
parent
0625bdb21e
commit
77b088e7e3
16
lib/index.js
16
lib/index.js
@ -43,9 +43,25 @@ var bluetest = module.exports = function(options) {
|
||||
logger.info(m);
|
||||
});
|
||||
|
||||
|
||||
gatt.stdout.on('data', (data) => {
|
||||
logger.info(`stdout: ${data}`);
|
||||
});
|
||||
|
||||
gatt.stderr.on('data', (data) => {
|
||||
logger.info(`stderr: ${data}`);
|
||||
});
|
||||
|
||||
gatt.on('close', (code) => {
|
||||
logger.warn(`child process exited with code ${code}`);
|
||||
});
|
||||
|
||||
|
||||
|
||||
logger.info('Trying to connect to ', core.mac);
|
||||
cStr = 'connect ' + core.mac + '\n';
|
||||
gatt.stdin.write(cStr);
|
||||
|
||||
};
|
||||
|
||||
core.init = function(options) {
|
||||
|
Loading…
Reference in New Issue
Block a user