Added basic multidevice support

This commit is contained in:
Magnus Åhall 2026-02-26 15:21:24 +01:00
parent d0b0aba30d
commit 7feeacea42
7 changed files with 505 additions and 186 deletions

View file

@ -19,13 +19,16 @@ type Config struct {
LogDir string
}
Device struct {
Address string
Port int
Username string
Password string
Timeout int
}
Devices []Device
}
type Device struct {
Name string
Address string
Port int
Username string
Password string
Timeout int
}
func readConfig() (config Config, err error) {