From d9ac54bd59461171e3099a41253e5c2902449ae0 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Thu, 7 Jul 2016 11:12:48 +0100 Subject: [PATCH] process luxometer --- lib/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 6b724d3..c1e9659 100644 --- a/lib/index.js +++ b/lib/index.js @@ -28,8 +28,9 @@ bluetest = module.exports = function(options) { core.processLuxData = function(data) { var m, e, lux; - logger.debug(data); - var wH = data.slice(-5).split(' '); + var _data = data.toString(); + logger.debug(_data); + var wH = _data.slice(-5).split(' '); var wB = []; wB[0] = parseInt(wH[0], 16); wB[1] = parseInt(wH[1], 16);