Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 790 Bytes

README.md

File metadata and controls

46 lines (26 loc) · 790 Bytes

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.