process luxometer

This commit is contained in:
Martin Donnelly 2016-07-07 12:06:42 +01:00
parent 75e506b280
commit cd97bcdf24

View File

@ -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);