Skip to content

Instantly share code, notes, and snippets.

@vjeantet
Created November 15, 2014 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjeantet/d1b8c141cccaa7167a92 to your computer and use it in GitHub Desktop.
Save vjeantet/d1b8c141cccaa7167a92 to your computer and use it in GitHub Desktop.
Go iBeacon
package main
import (
"log"
"github.com/vjeantet/beacon"
)
func main() {
b, err := beacon.NewBeacon("87DD5976-9E6B-4EFF-A88F-17FF3BEF774D", 1, 1) // uuid, major, minor
if err != nil {
log.Fatal(err)
}
log.Fatal(b.StartAdvertising())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment