From 8ce9ce72d3e32427d01ebe4bf8bef6aa863979ca Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 17 一月 2025 15:48:36 +0800
Subject: [PATCH] #
---
app/src/main/java/com/example/agvcontroller/protocol/AgvAction.java | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/app/src/main/java/com/example/agvcontroller/protocol/AgvAction.java b/app/src/main/java/com/example/agvcontroller/protocol/AgvAction.java
index 85c8775..4113844 100644
--- a/app/src/main/java/com/example/agvcontroller/protocol/AgvAction.java
+++ b/app/src/main/java/com/example/agvcontroller/protocol/AgvAction.java
@@ -2,14 +2,10 @@
+import com.example.agvcontroller.action.ForceSwitchAction;
import com.example.agvcontroller.socket.NettyServerHandler;
-import com.example.agvcontroller.socket.RadixTools;
-
-import org.json.JSONObject;
import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
/**
@@ -40,9 +36,9 @@
byte valByte = (byte) val; // 灞炴�у��
- byte[] bytes = actionBody.writeToBytes(); // 鍛戒护鍙傛暟
+ byte[] bytes = Utils.reverse(actionBody.writeToBytes()); // 鍛戒护鍙傛暟
- return Utils.merge(cmdCode,valByte,bytes);
+ return Utils.merge(serialNoBytes,cmdCode, valByte, bytes);
}
void readFromBytes(byte[] messageBodyBytes) {
--
Gitblit v1.9.1