From 5c514cf50eb825b02c839b5b0e6ba2a5880586bd Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 20 六月 2025 10:52:00 +0800 Subject: [PATCH] 基于酒泉水肥机FBox配置,进行协议与值对象等调整 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol4Mqtt/pSdV1/upVos/WeatherVo.java | 46 +++++++++++++++++++++++++++------------------- 1 files changed, 27 insertions(+), 19 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol4Mqtt/pSdV1/upVos/WeatherVo.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol4Mqtt/pSdV1/upVos/WeatherVo.java index 1b2b510..58926a5 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol4Mqtt/pSdV1/upVos/WeatherVo.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol4Mqtt/pSdV1/upVos/WeatherVo.java @@ -16,28 +16,34 @@ @JSONField(name = "flexem_message_id") public Integer messageId ;//娑堟伅ID - public Integer no ;//娴嬬珯缂栧彿锛屽叾涓嶅湪JSON鏁版嵁涓紝鍏朵腑涓婚涓� + public Integer no ;//娴嬬珯缂栧彿锛屽叾涓嶅湪JSON鏁版嵁涓紝鍏跺湪涓婚涓� - @JSONField(name = "浜屾哀鍖栫⒊") - public Integer carbonDioxide ;//浜屾哀鍖栫⒊ + //@JSONField(name = "浜屾哀鍖栫⒊") + //public Integer carbonDioxide ; - @JSONField(name = "鍏夌収寮哄害") - public Integer lightIntensity ;//鍏夌収寮哄害 - - @JSONField(name = "澶ф皵鍘嬪姏") - public Integer atmosphericPressure ;//澶ф皵鍘嬪姏 + //@JSONField(name = "澶ф皵鍘嬪姏") + //public Integer atmosphericPressure ; @JSONField(name = "绌烘皵娓╁害") - public Integer airTemperature ;//绌烘皵娓╁害 + public Integer airTemperature ; @JSONField(name = "绌烘皵婀垮害") - public Integer airHumidity ;//绌烘皵婀垮害 + public Integer airHumidity ; - @JSONField(name = "PM2.5") - public Integer pm25 ;//PM2.5 + @JSONField(name = "绱绾�") + public Integer ultraviolet ; - @JSONField(name = "PM10") - public Integer pm10 ;//PM10 + @JSONField(name = "鍏夌収寮哄害") + public Integer lightIntensity ; + + @JSONField(name = "闆ㄩ噺") + public Integer rainfall ; + + @JSONField(name = "椋庨��") + public Integer windSpeed ; + + @JSONField(name = "椋庡悜") + public Integer windDirection ; @JSONField(name = "flexem_timestamp") @@ -62,14 +68,16 @@ public String toString(){ StringBuilder sb = new StringBuilder(); sb.append("姘旇薄鏁版嵁=>") ; + //sb.append(" 浜屾哀鍖栫⒊锛�" + carbonDioxide + ", ") ; + //sb.append(" 澶ф皵鍘嬪姏锛�" + atmosphericPressure + ", ") ; sb.append(" 娑堟伅ID锛�" + messageId + ", ") ; - sb.append(" 浜屾哀鍖栫⒊锛�" + carbonDioxide + ", ") ; - sb.append(" 鍏夌収寮哄害锛�" + lightIntensity + ", ") ; - sb.append(" 澶ф皵鍘嬪姏锛�" + atmosphericPressure + ", ") ; sb.append(" 绌烘皵娓╁害锛�" + airTemperature + ", ") ; sb.append(" 绌烘皵婀垮害锛�" + airHumidity + ", ") ; - sb.append(" PM2.5锛�" + pm25 + ", ") ; - sb.append(" PM10锛�" + pm10 + ", ") ; + sb.append(" 绱绾匡細" + ultraviolet + ", ") ; + sb.append(" 鍏夌収寮哄害锛�" + lightIntensity + ", ") ; + sb.append(" 闆ㄩ噺锛�" + rainfall + ", ") ; + sb.append(" 椋庨�燂細" + windSpeed + ", ") ; + sb.append(" 椋庡悜锛�" + windDirection + ", ") ; sb.append(" 璁惧鏃堕棿锛�" + devDt + ", ") ; sb.append(" 璁惧鏃堕棿锛�" + this.getDevDtStr() + ", ") ; sb.append("\n") ; -- Gitblit v1.8.0