From 0625bdb21e56a0c109d3fc5dbb3810523d026d02 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Wed, 6 Jul 2016 14:36:09 +0100 Subject: [PATCH] continuing --- lib/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/index.js b/lib/index.js index 912e9ac..57bedaf 100644 --- a/lib/index.js +++ b/lib/index.js @@ -39,6 +39,10 @@ var bluetest = module.exports = function(options) { logger.debug('gatt exit code', code); }); + gatt.on('message', function(m) { + logger.info(m); + }); + logger.info('Trying to connect to ', core.mac); cStr = 'connect ' + core.mac + '\n'; gatt.stdin.write(cStr);