uri-beacon
v0.2.4
Published
Bluetooth URI Beacon
Downloads
5
Maintainers
Readme
uri-beacon is deprecated, use eddystone-beacon as a replacement
Bluetooth URI Beacon for Physical Web
Requires NodeJS and Linux
Install the dependencies
npm install
Run tests
npm test
Create a beacon
$ sudo node
> uriBeacon = require ('./uri-beacon')
> uriBeacon.advertise('http://example.com')
Create a beacon and specify the txPowerLevel in dBm
$ sudo node
> uriBeacon = require ('./uri-beacon')
> uriBeacon.advertise('http://example.com', { txPowerLevel: -22 })
See the examples
- simpleBeacon - easiest way to create a URI Beacon
- powerLevel - create a URI Beacon specifying txPowerLevel
- blenoBeacon - manually create a URI Beacon using bleno
- flexibleBeacon - use library to encode URI, manually handle advertising data
This only runs on Linux. You need to run as sudo. See bleno for more info.
Have an older machine or Raspberry Pi? Add a Bluetooth 4.0 USB Adapter.