package com.hdl.sdk.link.core.bean;
|
|
import java.io.Serializable;
|
|
/**
|
* Created by hxb on 2024/3/25.
|
*/
|
public class BusProRequest implements Serializable {
|
/**
|
* 目标子网号
|
*/
|
private byte desSubnetId;
|
/**
|
* 目标设备号
|
*/
|
private byte desDeviceId;
|
/**
|
* 操作码,高位与低位
|
*/
|
private byte[] command;
|
/**
|
* 发送出去的附加数据
|
*/
|
private byte[] extraBytes = new byte[]{};
|
|
/**
|
* 特别的应用,发送的命令与回复的命令不对应,可以使用此方法
|
*/
|
private byte[] ackCommand;
|
|
/**
|
* 每次发送的时间
|
*/
|
private long awaitTime;
|
|
/**
|
* 重发数次
|
*/
|
private int maxRetry;
|
|
/**
|
* 获取目标设备子网号
|
*/
|
public byte getDesSubnetId() {
|
return desSubnetId;
|
}
|
|
/**
|
* 设置目标设备子网号
|
*/
|
public void setDesSubnetId(byte desSubnetId) {
|
this.desSubnetId = desSubnetId;
|
}
|
|
/**
|
* 获取目标设备号
|
*/
|
public byte getDesDeviceId() {
|
return desDeviceId;
|
}
|
|
/**
|
* 设置获取目标设备号
|
*/
|
public void setDesDeviceId(byte desDeviceId) {
|
this.desDeviceId = desDeviceId;
|
}
|
|
/**
|
* 获取操作码
|
*/
|
public byte[] getCommand() {
|
return command;
|
}
|
|
/**
|
* 设置操作码
|
*/
|
public void setCommand(byte[] command) {
|
this.command = command;
|
}
|
|
/**
|
* 获取附加数据
|
*/
|
public byte[] getExtraBytes() {
|
return extraBytes;
|
}
|
|
/**
|
* 设置附加数据
|
*/
|
public void setExtraBytes(byte[] addBytes) {
|
this.extraBytes = addBytes;
|
}
|
|
public byte[] getAckCommand() {
|
return ackCommand;
|
}
|
|
public void setAckCommand(byte[] ackCommand) {
|
this.ackCommand = ackCommand;
|
}
|
|
public long getAwaitTime() {
|
return awaitTime;
|
}
|
|
public void setAwaitTime(long awaitTime) {
|
this.awaitTime = awaitTime;
|
}
|
|
public int getMaxRetry() {
|
return maxRetry;
|
}
|
|
public void setMaxRetry(int maxRetry) {
|
this.maxRetry = maxRetry;
|
}
|
}
|