process luxometer

This commit is contained in:
Martin Donnelly 2016-07-07 11:12:48 +01:00
parent 427b7d74c4
commit d9ac54bd59

View File

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