Skip to content
/ beacon Public

Beacon Simulator: A simple beacon simulator (iBeacon/Eddystone) in Golang

Notifications You must be signed in to change notification settings

kkdai/beacon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beacon Simulator: A simple beacon simulator (iBeacon/Eddystone) in Golang

GitHub license GoDoc Build Status

This package is summarized golang beacon simulator with paypal/gatt package. It supports major two beacon as follow:

Install library

go get github.com/kkdai/beacon

Install binary

  • Eddystone: go install github.com/kkdai/beacon/eddystone
  • iBeacon: go install github.com/kkdai/beacon/ibeacon

Simulator iBeacon

package main

import (
	. "github.com/kkdai/beacon"
)

func main() {
	ib := NewIBeacon("AA6062F098CA42118EC4193EB73CCEB6", "Gopher", -59)
	ib.SetiBeaconVersion(1, 2)
	ib.AddCountService()
	ib.AddBatteryService()
	ib.Advertise()
}

Simulator Eddystone

package main

import (
	. "github.com/kkdai/beacon"
)

func main() {
	ed := NewEddystoneURLBeacon("http://www.evanlin.com", -20)
	ed.Advertise()
}

Inspired by

Project52

It is one of my project 52.

License

This package is licensed under MIT license. See LICENSE for details.

About

Beacon Simulator: A simple beacon simulator (iBeacon/Eddystone) in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages