From c8b6006793c57e14ec25beaa746205d2ffdc2b02 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 21 八月 2025 15:57:31 +0800
Subject: [PATCH] 微信小程序后端模块(子系统)增加接收农业综合站(水肥、气象、墒情)接收命令结果的业务逻辑
---
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java
index 7593dab..b812d84 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java
@@ -14,10 +14,21 @@
protected HashMap<String, Class<CodeParse>> downCode2Class = new HashMap<>() ;
protected HashMap<String, CodeParse> downCode2ClassInstance = new HashMap<>() ;
+ protected Notify notify ;
+
/**
* 娓呯┖鑷繁
*/
public abstract void clear() ;
+
+ /**
+ * 璁剧疆RTU淇℃伅閫氱煡鍣�
+ * @param notify 閫氱煡
+ */
+ public void setNotify(Notify notify){
+ this.notify = notify ;
+ }
+
/**
* 鍗曠嚎绋嬪崟渚婦river妯″紡涓嬭繍琛�
* 鎵弿璇嗗埆鍔熻兘鐮佹敞瑙g被
@@ -162,5 +173,16 @@
*/
public abstract MidResult[] createCommand(Boolean isLowPower, Command command, Object... params);
-
+
+ /**
+ * 鏋勯�犱笅琛岄�忎紶鏁版嵁锛堝懡浠わ級
+ * @param isLowPower 鏄惁鍦ㄤ綆鍔熻�楃幆澧冧笅杩愯
+ * @param command 鍛戒护
+ * @return MidResult[]
+ */
+ public MidResult[] transparentCommand(Boolean isLowPower, Command command, Object... params){
+ return null ;
+ }
+
+
}
--
Gitblit v1.8.0