mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-01-26 21:06:16 +00:00
process luxometer
This commit is contained in:
parent
7b0e824f0d
commit
36c21c3f77
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user