CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.ld.igds.protocol.modbus.data;
 
import com.ld.igds.models.DeviceModbus;
import lombok.Data;
 
/**
 * @Desc: 用于封装ModBUsTCP的信息
 * @author: andy.jia
 * @update-time: 2023/8/12 15:29
 */
@Data
public class ModbusTcp {
 
 
    private String companyId;
 
    //业务相关编码
    private String bizCode;
 
    private String serId;
 
    private String ip;
 
    private int port;
 
    private DeviceModbus deviceModbus;
 
    private int addrExe;
 
    public ModbusTcp() {
        super();
    }
 
    public ModbusTcp(DeviceModbus deviceModbus) {
        this.deviceModbus = deviceModbus;
    }
 
    public ModbusTcp(String companyId, String bizCode, String serId, String ip, int port, DeviceModbus deviceModbus) {
        this.companyId = companyId;
        this.bizCode = bizCode;
        this.serId = serId;
        this.ip = ip;
        this.port = port;
        this.deviceModbus = deviceModbus;
    }
}