uri-beacon-scanner

1.0.2 • Public • Published

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 broadcasting
  • flags - flags
  • txPower - measured received power at 0 m in dBm
  • rssi - 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();

Dependencies (3)

Dev Dependencies (1)

Package Sidebar

Install

npm i uri-beacon-scanner

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sandeepmistry