generated from thinkode/modelRepository
hardware code cleaning
This commit is contained in:
21
hardware/devicesHandler.go
Normal file
21
hardware/devicesHandler.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user