package reporter type StrEnv struct { Timestamp string `json:"timestamp"` // 时间戳(秒, 存在"​​2038-01-19 03:14:07 UTC​​"溢出风险) Temperature string `json:"temperature"` // 温度(0.1°C) Humidity string `json:"humidity"` // 湿度(0.1%) Illuminance string `json:"illuminance"` // 照度(0.1 Lux) Voltage string `json:"voltage"` // 电压(0.1V) } func (r *MQTTReporter) loopRecvOneEnvData() { } func (r *MQTTReporter) loopRecvGrpEnvData() { }