From cd97bcdf24bd20d23032e0adeb1ff2053a8db093 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Thu, 7 Jul 2016 12:06:42 +0100 Subject: [PATCH] process luxometer --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index bac85bd..1a2b4be 100644 --- a/lib/index.js +++ b/lib/index.js @@ -32,12 +32,13 @@ bluetest = module.exports = function(options) { var p = data.lastIndexOf(10); var l = data.length - (p + 1); + //var _data = data.toString('ascii',p + 1, l); var _data = data.toString('ascii'); //logger.debug('buffer:', data); //logger.warn('ascii:', _data); - +logger.debug(data.length); /* var wH = _data.slice(-5).split(' '); var wB = []; wB[0] = parseInt(wH[0], 16);