This commit is contained in:
Wlad Meixner 2019-02-10 20:43:57 +01:00
parent d43b434884
commit b33ccbaf8a

View File

@ -2,9 +2,7 @@ package hue
import ( import (
"fmt" "fmt"
"log"
"time" "time"
) )
const VERSION = "0.1.2" const VERSION = "0.1.2"
@ -26,13 +24,9 @@ func main() {
// if errCom != nil { // if errCom != nil {
// fmt.Println("[ERROR]" + errCom.Error()) // fmt.Println("[ERROR]" + errCom.Error())
// } // }
//tickSwitch(bridge)
testLightBulb(bridge)
select {}
//fmt.Println(test) //fmt.Println(test)
} }
func strobeLight(b *Bridge, id string) { func strobeLight(b *Bridge, id string) {
ticker := time.NewTicker(200 * time.Millisecond) ticker := time.NewTicker(200 * time.Millisecond)
quit := make(chan struct{}) quit := make(chan struct{})