https://github.com/oroce/tist
Texas Instruments SensorTag wrapper
https://github.com/oroce/tist
Last synced: 14 days ago
JSON representation
Texas Instruments SensorTag wrapper
- Host: GitHub
- URL: https://github.com/oroce/tist
- Owner: oroce
- Created: 2014-06-01T16:16:38.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-06T13:32:03.000Z (almost 11 years ago)
- Last Synced: 2025-06-13T18:47:35.022Z (26 days ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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