uri-beacon-scanner
v1.0.2
Published
Scan for UriBeacon's using node.js
Downloads
25
Readme
node-uri-beacon-scanner is deprecated, use node-eddystone-beacon-scanner as a replacement
Scan for UriBeacon's using node.js
Use's noble for BLE peripheral scanning, then attempts to parse discovered peripherals using the UriBeacon Advertising Packet Specification
Setup
npm install uri-beacon-scanner
Examples
See examples folder.
Usage
var UriBeaconScanner = require('uri-beacon-scanner');
Register discover event handler
UriBeaconScanner.on('discover', function(uriBeacon) {
// ...
});
The uriBeacon
object will have the following properties:
uri
- (expanded) URI the beacon is broadcastingflags
- flagstxPower
- measured received power at 0 m in dBmrssi
- RSSI of discovered beacon
Start scanning
Start scanning for UriBeacon's, you can specify whether to allow duplicates (default is false).
UriBeaconScanner.startScannning(allowDuplicates);
Stop scanning
Stop scanning for UriBeacon's.
UriBeaconScanner.stopScannning();