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);
|
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);
|
logger.info('Trying to connect to ', core.mac);
|
||||||
cStr = 'connect ' + core.mac + '\n';
|
cStr = 'connect ' + core.mac + '\n';
|
||||||
gatt.stdin.write(cStr);
|
gatt.stdin.write(cStr);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
core.init = function(options) {
|
core.init = function(options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user