Listen the Amazon Dash Button is pressed in the intranet.
go get -u github.com/minodisk/dashen
package main
import (
"log"
"github.com/minodisk/dashen"
)
func main() {
d := dashen.New()
d.Subscribe("00:00:00:00:00:00", func() {
log.Println("detected")
})
if err := d.Listen(); err != nil {
panic(err)
}
}