hardware code cleaning

This commit is contained in:
2025-12-01 19:12:01 +01:00
parent 01ffd36a60
commit b864f3ff7b
4 changed files with 281 additions and 258 deletions

View File

@@ -0,0 +1,21 @@
package hardware
// MappingInfo is the configuration for each device
type MappingInfo struct {
DeviceInfo struct {
Name string `yaml:"name"`
Manufacturer string `yaml:"manufacturer"`
Type string `yaml:"type"`
} `yaml:"device"`
Features map[string]any `yaml:"features"`
}
// Device represents the logical to be controlled
type Device struct {
SerialNumber string // The device s/n
Name string // The device name
Manufacturer string // The device manufacturer
Version string // The device version
Endpoint Endpoint // The device endpoint which control this device
}