Skip to content

TheThingSystem/node-air-air

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

node.js library for the Air.Air! Portal Air Quality Detector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published