package com.example.agvcontroller.protocol;
|
|
|
import java.io.Serializable;
|
|
/**
|
* 应答正常包
|
* Created by vincent on 2023/3/16
|
*/
|
public class AGV_A1_DOWN implements IMessageBody, Serializable {
|
|
private static final long serialVersionUID = -1744072958515341165L;
|
|
@Override
|
public byte[] writeToBytes() {
|
return Utils.merge(ackSign, Utils.reverse(temp));
|
}
|
|
@Override
|
public void readFromBytes(byte[] messageBodyBytes) {
|
|
}
|
|
public byte getAckSign() {
|
return ackSign;
|
}
|
|
public void setAckSign(byte ackSign) {
|
this.ackSign = ackSign;
|
}
|
|
public byte[] getTemp() {
|
return temp;
|
}
|
|
public void setTemp(byte[] temp) {
|
this.temp = temp;
|
}
|
|
private byte ackSign = 0x11;
|
|
private byte[] temp = new byte[4];
|
|
public String getSerialNo() {
|
return "";
|
}
|
|
}
|