Skip to content

Instantly share code, notes, and snippets.

@kmariano
Created December 1, 2014 21:20
Show Gist options
  • Select an option

  • Save kmariano/5a332f979f754a74fba8 to your computer and use it in GitHub Desktop.

Select an option

Save kmariano/5a332f979f754a74fba8 to your computer and use it in GitHub Desktop.
var noble = require('noble');
var beanAPI = require('ble-bean');
noble.on('discover', function(peripheral){
console.log(peripheral.uuid);
console.log(peripheral.advertisement)
});
noble.startScanning([beanAPI.UUID]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment