process luxometer

This commit is contained in:
Martin Donnelly 2016-07-07 11:59:42 +01:00
parent 7b0e824f0d
commit 36c21c3f77

View File

@ -27,6 +27,7 @@ bluetest = module.exports = function(options) {
};
core.processLuxData = function(data) {
console.log('+ processLuxData');
var m, e, lux;
var p = data.lastIndexOf(10);
var l = data.length - (p + 1);
@ -36,6 +37,7 @@ bluetest = module.exports = function(options) {
logger.debug('buffer:', data);
logger.warn('ascii:', _data);
/* var wH = _data.slice(-5).split(' ');
var wB = [];
wB[0] = parseInt(wH[0], 16);
@ -57,6 +59,7 @@ bluetest = module.exports = function(options) {
logger.info('Lux: ', lux);
*/
console.log('- processLuxData');
};
core.enableLuxNotification = function() {