mirror of https://git.sr.ht/~michalr/go-satel
Poll for partitions fire alarm
This commit is contained in:
parent
7ac13d8e47
commit
91a5a9ae6f
1
satel.go
1
satel.go
|
|
@ -71,6 +71,7 @@ func NewConfig(conn net.Conn, config Config) *Satel {
|
||||||
for {
|
for {
|
||||||
s.commandQueue <- callCommandAndRetrieveResult(SatelCommand_armedPartitionsReally, s)
|
s.commandQueue <- callCommandAndRetrieveResult(SatelCommand_armedPartitionsReally, s)
|
||||||
s.commandQueue <- callCommandAndRetrieveResult(SatelCommand_partitionsAlarm, s)
|
s.commandQueue <- callCommandAndRetrieveResult(SatelCommand_partitionsAlarm, s)
|
||||||
|
s.commandQueue <- callCommandAndRetrieveResult(SatelCommand_partitionsFireAlarm, s)
|
||||||
time.Sleep(config.PoolingInterval)
|
time.Sleep(config.PoolingInterval)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue