Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oroce/tist

Texas Instruments SensorTag wrapper
https://github.com/oroce/tist

Last synced: about 1 month ago
JSON representation

Texas Instruments SensorTag wrapper

Awesome Lists containing this project

README

        

### Tist - Texas Instruments SensorTag

Wrapper around @sandeepmistry's amazing [https://github.com/sandeepmistry/node-sensortag](sensortag) module.

### Features

* [x] notify, enable sensors
* [x] uuid filtering
* [x] restarting discovering if device disconnects

### Example

var Tist = require('tist');
var tist = new Tist();
tist.on('device', function(device) {
device
.once('disconnect', function(){
device.removeAllListeners();
})
.on('metric', function() {
var args = [].slice.call(arguments);
console.log.apply(console, ['metric arrived:'].concat(args));
});
});

### License

MIT