generated from thinkode/modelRepository
22 lines
610 B
Go
22 lines
610 B
Go
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
|
|
}
|