Remove test

This commit is contained in:
Elara 2021-10-23 18:42:22 -07:00
parent 32cab6d00f
commit 45621a98d5
2 changed files with 0 additions and 28 deletions

View File

@ -1,28 +0,0 @@
package main
import (
"fmt"
"time"
"go.arsenm.dev/itd/api"
)
func main() {
itd, _ := api.New(api.DefaultAddr)
defer itd.Close()
fmt.Println(itd.Address())
mCh, cancel, _ := itd.WatchMotion()
go func() {
time.Sleep(10 * time.Second)
cancel()
fmt.Println("canceled")
}()
for m := range mCh {
fmt.Println(m)
}
}

BIN
test

Binary file not shown.