mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-02-04 09:00:13 +00:00
process luxometer
This commit is contained in:
parent
427b7d74c4
commit
d9ac54bd59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user