Skip to content

Instantly share code, notes, and snippets.

@loke-dev
Last active March 15, 2017 12:54
Show Gist options
  • Save loke-dev/731097071df7fe1fae67d88f76173a38 to your computer and use it in GitHub Desktop.
Save loke-dev/731097071df7fe1fae67d88f76173a38 to your computer and use it in GitHub Desktop.
Eddystone bluetooth beacon for node.js
const eddystoneBeacon = require('eddystone-beacon')
const options = {
name: 'Beacon', // set device name when advertising (Linux only)
txPowerLevel: -21, // override TX Power Level, default value is -21,
tlmCount: 2, // 2 TLM frames
tlmPeriod: 10 // every 10 advertisements
}
eddystoneBeacon.advertiseUrl('https://lnu.se', options)
console.log("Initiated")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment