air-air
v0.2.0
Published
node.js library for the AirAir Portable Air Quality Detector
Downloads
7
Readme
node-air-air
node.js library for the Air.Air! Portal Air Quality Detector
Install
npm install air-air
Usage
var AirAir = require('air-air');
Discover
AirAir.discover(callback(sensor));
Connect and Setup (discover services and characteristics)
sensor.connectAndSetup(callback);
Disconnect
sensor.disconnect(callback);
Reading
sensor.on('sensorDataChange', function(err, results) {
});
sensor.notifySensorData(callback);
Device Name
sensor.readDeviceName(callback(deviceName));
var deviceName = 'AIRAIR 1';
sensor.writeDeviceName(deviceName, callback);
Credits
Based entirely on Sandeep Mistry's node-tethercell package.