envdata.go 619 B

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