Skip to content

Latest commit

 

History

History
 
 

nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

NodeJS Physical Web Beacon Example

Requires NodeJS and Linux

Install the dependencies

npm install

Create a beacon

$ sudo node
> uriBeacon = require ('uri-beacon')
> uriBeacon.advertise('http://example.com')

See the examples

You can only create beacons on Linux. You need to run as sudo. See bleno for more info.

The uriEncoder and tests will run on OS X. You can install on non-Linux platforms with npm install --force.

Have an older machine or Raspberry Pi? Add a Bluetooth 4.0 USB Adapter.