add heartbeat send data every 30 Seconds
This commit is contained in:
@@ -126,6 +126,8 @@ func (b *Bus) Start(log *logging.Logger) error {
|
||||
interval = 5 * time.Second
|
||||
} else {
|
||||
b.Reachable = true
|
||||
// send data as a heartbeat for the ArtNet Protocol
|
||||
b.Send <- b.Data
|
||||
log.Info("bus.Start", fmt.Sprintf("device:%s ip:%s watchdog running", b.Name, b.Ip))
|
||||
interval = 30 * time.Second
|
||||
}
|
||||
|
Reference in New Issue
Block a user