mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-01-27 12:36:17 +00:00
process luxometer
This commit is contained in:
parent
75e506b280
commit
cd97bcdf24
@ -32,12 +32,13 @@ bluetest = module.exports = function(options) {
|
|||||||
var p = data.lastIndexOf(10);
|
var p = data.lastIndexOf(10);
|
||||||
var l = data.length - (p + 1);
|
var l = data.length - (p + 1);
|
||||||
|
|
||||||
|
|
||||||
//var _data = data.toString('ascii',p + 1, l);
|
//var _data = data.toString('ascii',p + 1, l);
|
||||||
var _data = data.toString('ascii');
|
var _data = data.toString('ascii');
|
||||||
//logger.debug('buffer:', data);
|
//logger.debug('buffer:', data);
|
||||||
//logger.warn('ascii:', _data);
|
//logger.warn('ascii:', _data);
|
||||||
|
|
||||||
|
logger.debug(data.length);
|
||||||
/* var wH = _data.slice(-5).split(' ');
|
/* var wH = _data.slice(-5).split(' ');
|
||||||
var wB = [];
|
var wB = [];
|
||||||
wB[0] = parseInt(wH[0], 16);
|
wB[0] = parseInt(wH[0], 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user