mirror of https://git.sr.ht/~michalr/go-satel
read me
This commit is contained in:
parent
13bbba0e07
commit
7793e93b5b
|
@ -36,7 +36,7 @@ s := satel.NewConfig("<ip:port>", satel.Config{EventsQueueSize: 1000})
|
||||||
go func() {
|
go func() {
|
||||||
value := true
|
value := true
|
||||||
for {
|
for {
|
||||||
s.SetOutput("<user code>", <port number> value)
|
s.SetOutput("<user code>", <port number>, value)
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
value = !value
|
value = !value
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue