Node JS interface for the Sensirion SLI-1000 liquid flow meter
How to use:
var flow = require('./flowjs');
// Initalize a new SLI1000 specifying the device name and address
var sli1000 = new flow.SLI1000('sli1000',0);
Combines single measurement start and get into one function to return the measurement data. Accepts a callback
that has access to the data
.
Usage:
var sli1000 = new flow.SLI1000('sli1000',0);
sli1000.simpleGet(function(data) {
console.log('Measurement: ' + data + ' uL/min');
});
Initialises measurement on the device, and makes a reply. Reply contains no data.
Retrieves the single measurement from the SLI1000.
Returns a Number
which is the flow rate in uL/min (microlitres per minute)