cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.901: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-11-05 13:14:49 +02:00
1 parent d48b9aff87
commit e2c7085d2c
76 files changed
+5380 -330

No files matched your search

+5
View File
@@ -197,6 +197,11 @@ func (e *EEBUS) Start(c *Core) error {
if e.grid, err = startGrid(e, grid); err != nil {
return err
}
// the declared nominal power follows the devices (core.nominalChanged)
gl := e.grid
e.core.mu.Lock()
e.core.OnNominal = func(w float64) { gl.send(gridMsg{Cmd: "nominal", W: w}) }
e.core.mu.Unlock()
e.svc.Start()
log.Printf("EEBUS: devices SKI %s (port %d), grid SKI %s (port %d)", e.ski, e.port+1, e.gridSKI, e.port)
go e.poll()