diff --git a/lib/index.js b/lib/index.js index 8e424a7..397c9fa 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,6 +27,7 @@ bluetest = module.exports = function(options) { }; core.processLuxData = function(data) { + console.log('+ processLuxData'); var m, e, lux; var p = data.lastIndexOf(10); var l = data.length - (p + 1); @@ -36,6 +37,7 @@ bluetest = module.exports = function(options) { logger.debug('buffer:', data); logger.warn('ascii:', _data); + /* var wH = _data.slice(-5).split(' '); var wB = []; wB[0] = parseInt(wH[0], 16); @@ -57,6 +59,7 @@ bluetest = module.exports = function(options) { logger.info('Lux: ', lux); */ + console.log('- processLuxData'); }; core.enableLuxNotification = function() {