Skip to content

Instantly share code, notes, and snippets.

@CHLibrarian
Created August 29, 2014 18:09
Show Gist options
  • Save CHLibrarian/9c62b626473a434dfc5b to your computer and use it in GitHub Desktop.
Save CHLibrarian/9c62b626473a434dfc5b to your computer and use it in GitHub Desktop.
ContextHub Context Rule Beacon Create Gist
// Creating a beacon
var newBeacon = {}
newBeacon.name = "New beacon"
newBeacon.uuid = "7EA016FB-B7C4-43B0-9FCC-AAB391AE1722"
newBeacon.major = 100
newBeacon.minor = 1
newBeacon.tags = "beacon-tag"
beacon.create(newBeacon.tags, newBeacon.name, newBeacon.uuid, newBeacon.major, newBeacon.minor)
console.log("Created beacon '" + newBeacon.name + "'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment