npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

tist

0.3.0 • Public • Published

Tist - Texas Instruments SensorTag

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

Features

  • notify, enable sensors
  • uuid filtering
  • 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

install

npm i tist

Downloadsweekly downloads

17

version

0.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability