You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
2 weeks ago
|
package MYX
|
||
|
|
||
|
import "goUpload/config"
|
||
|
|
||
|
type ConfigFile struct {
|
||
|
config.Consumer
|
||
|
IOConfig UserConfig `json:"ioConfig"`
|
||
|
Sensors sensorConfig `json:"sensors"`
|
||
|
}
|
||
|
|
||
|
type UserConfig struct {
|
||
|
InMqtt config.MqttConfig `json:"inMqtt"`
|
||
|
InFileMonitor config.FileMonitorConfig `json:"inFile"`
|
||
|
OutHttpPost config.HttpConfig `json:"outHttp"`
|
||
|
}
|
||
|
|
||
|
type sensorConfig struct {
|
||
|
TYCJsensorNameMap map[string]string `json:"TYCJsensorNameMap"`
|
||
|
ZDsensorMCMap map[string]string `json:"ZDsensorM-CMap"`
|
||
|
GDGSsensorNameMap []GDGSsensorNameMap `json:"GDGSsensorNameMap"`
|
||
|
}
|
||
|
|
||
|
//gdgsSensorNameMap
|
||
|
|
||
|
type GDGSsensorNameMap struct {
|
||
|
Type string `json:"type"`
|
||
|
Map map[string]SensorInfo `json:"map"`
|
||
|
Formula string `json:"formula,omitempty"`
|
||
|
}
|
||
|
|
||
|
type SensorInfo struct {
|
||
|
Label string `json:"Label"`
|
||
|
Params map[string]float64 `json:"params,omitempty"`
|
||
|
}
|
||
|
|
||
|
// CHInfo 光电光栅的通道的对应信息
|
||
|
type CHInfo struct {
|
||
|
SensorInfo
|
||
|
Type string
|
||
|
Formula string
|
||
|
}
|