From 17bb52d9337328323f5f8d2a806cf4f445673b4a Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期四, 06 二月 2025 09:20:55 +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