Initial commit

This commit is contained in:
Jon-Paul Story
2026-08-29 23:29:06 -05:00
commit be3c4a1214
6 changed files with 130 additions and 0 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
const BeaconScanner = require('node-beacon-scanner');
const scanner = new BeaconScanner();
var fs = require('fs');
// Set an Event handler for becons
scanner.onadvertisement = (ad) => {
console.log(JSON.stringify(ad, null, ' '));
};
// Start scanning
scanner.startScan().then(() => {
console.log('Started to scan.') ;
}).catch((error) => {
console.error(error);
});