From 8c4a723ff13e34152934b84c52267615c4e0fb8b Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 06 十二月 2024 10:22:34 +0800
Subject: [PATCH] 升级模拟器增加上报81数据,为上报阀门状态,用81数据代替心跳
---
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/ParseParamsForUpV1.java | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/ParseParamsForUpV1.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/ParseParamsForUpV1.java
index f6cea05..5500d20 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/ParseParamsForUpV1.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/ParseParamsForUpV1.java
@@ -6,6 +6,7 @@
public class ParseParamsForUpV1 implements CodeParseParams{
public String protocolName ;//鍗忚鍚嶇О
+ public Short protocolVersion ;
public String rtuAddr ;//鎺у埗鍣ㄥ潃
public String upCode ;//涓婅鎶ユ枃鏁版嵁涓殑鍔熻兘鐮�
public String upHex ;//琛屾姤鏂囨暟鎹崄鍏繘鍒跺舰寮�
@@ -16,7 +17,8 @@
public void clear(){
this.protocolName = null ;
- this.rtuAddr = null ;
+ this.protocolVersion = null ;
+ this.rtuAddr = null ;
this.upCode = null ;
this.upHex = null ;
this.upBuffer = null ;
@@ -24,13 +26,15 @@
}
public void setValue(String protocolName,
- String rtuAddr,
+ Short protocolVersion,
+ String rtuAddr,
String upCode,
String upHex,
byte[] upBuffer,
Data data){
this.protocolName = protocolName ;
- this.rtuAddr = rtuAddr ;
+ this.protocolVersion = protocolVersion ;
+ this.rtuAddr = rtuAddr ;
this.upCode = upCode ;
this.upHex = upHex ;
this.upBuffer = upBuffer ;
--
Gitblit v1.8.0