Created
August 29, 2014 18:09
-
-
Save CHLibrarian/9c62b626473a434dfc5b to your computer and use it in GitHub Desktop.
ContextHub Context Rule Beacon Create Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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