| | |
| | | |
| | | |
| | | |
| | | 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; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | 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) { |