node.js library for the Air.Air! Portal Air Quality Detector
npm install air-air
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);
Based entirely on Sandeep Mistry's node-tethercell package.