Open aep opened 3 years ago
Hi @aep thanks for reporting. The example omits any errors that CreateUser may return. Try to see what those errors are by capturing them:
func main() {
bridge, err := huego.Discover()
if err != nil {
panic(err)
}
user, err := bridge.CreateUser("my awesome hue app") // Link button needs to be pressed
if err != nil {
panic(err)
}
bridge = bridge.Login(user)
light, err := bridge.GetLight(3)
if err != nil {
panic(err)
}
light.Off()
}
the create user example in README.md doesnt work for me. bridge.CreateUser fails with