bluetooth

Get or set Bluetooth state

bluetooth

Get or set Bluetooth state

Currently OS X only

$ npm install --save bluetooth
var bluetooth = require('bluetooth');
 
bluetooth.get(function (errstate) {
    console.log(state);
    //=> 0 
});
 
bluetooth.set(1, function (err) {
    console.log('Bluetooth state changed to on');
});
$ npm install --global bluetooth
$ bluetooth --help
 
  Example
    $ bluetooth
    $ bluetooth on
    $ bluetooth off

MIT © Andreas Gillström