add heartbeat send data every 30 Seconds

This commit is contained in:
Adrian Zuercher
2025-07-16 21:53:47 +02:00
parent ba3c55dc34
commit da78a00446

View File

@@ -126,6 +126,8 @@ func (b *Bus) Start(log *logging.Logger) error {
interval = 5 * time.Second interval = 5 * time.Second
} else { } else {
b.Reachable = true 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)) log.Info("bus.Start", fmt.Sprintf("device:%s ip:%s watchdog running", b.Name, b.Ip))
interval = 30 * time.Second interval = 30 * time.Second
} }