continuing

This commit is contained in:
Martin Donnelly 2016-07-06 14:38:01 +01:00
parent 0625bdb21e
commit 77b088e7e3

View File

@ -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) {