数据上报
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.
 
 

24 lines
532 B

package WJHP
import "goUpload/config"
type ConfigFile struct {
config.Consumer
IOConfig UserConfig `json:"ioConfig"`
SensorConfig SensorConfig `json:"sensors"`
}
type UserConfig struct {
InMqtt config.MqttConfig `json:"inMqtt"`
OutHttpPost config.HttpConfig `json:"outHttp"`
}
type SensorConfig struct {
SjwySensorInfo map[string]SensorInfo `json:"sjwySensorInfo"`
}
type SensorInfo struct {
StationId int `json:"stationId"`
AppKey string `json:"appKey"`
MonitorType string `json:"monitorType"`
}