Skip to content

Instantly share code, notes, and snippets.

@JT5D
Forked from eklimcz-zz/gist:b37c05b29d9ac7cdd040
Last active August 29, 2015 14:27
Show Gist options
  • Save JT5D/bf93052580234b21004c to your computer and use it in GitHub Desktop.
Save JT5D/bf93052580234b21004c to your computer and use it in GitHub Desktop.
Noble basic scan
noble.startScanning();
noble.on(‘discover’, function(peripheral) {
var macAddress = peripheral.uuid;
var rss = peripheral.rssi;
var localName = advertisement.localName;
console.log('found device: ', macAdress, ' ', localName, ' ', rss);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment