envdata.go 488 B

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