From a42814eaa86c2167764b73a22ca0b1a0bebd32b6 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 20 一月 2025 14:58:56 +0800
Subject: [PATCH] #

---
 app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java b/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java
new file mode 100644
index 0000000..8ebe5ca
--- /dev/null
+++ b/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java
@@ -0,0 +1,40 @@
+package com.example.agvcontroller.protocol;
+
+
+import com.example.agvcontroller.socket.RadixTools;
+
+import java.io.Serializable;
+
+/**
+ * Created by vincent on 2023/3/15
+ */
+public class AGV_F0_UP implements IMessageBody, Serializable {
+
+    private static final long serialVersionUID = -5588066188890649095L;
+
+    @Override
+    public byte[] writeToBytes() {
+        return new byte[0];
+    }
+
+    @Override
+    public void readFromBytes(byte[] bytes) {
+        // password
+        this.password = RadixTools.bytesToHexStr(Utils.sliceWithReverse(bytes, 0, 4));
+        // type
+        this.type = Utils.sliceWithReverse(bytes, 4, 1)[0];
+
+
+    }
+
+    @Override
+    public String getSerialNo() {
+        return "";
+    }
+
+    private String password;
+
+    private byte type;
+
+}
+

--
Gitblit v1.9.1