2026-06-30 24681c81c09022f584a57006f2534b5f74723414
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package cn.iocoder.yudao.module.iot.dal.dataobject.device;
 
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import cn.iocoder.yudao.module.iot.core.enums.modbus.IotModbusFrameFormatEnum;
import cn.iocoder.yudao.module.iot.core.enums.modbus.IotModbusModeEnum;
import cn.iocoder.yudao.module.iot.dal.dataobject.product.IotProductDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
/**
 * IoT 设备 Modbus 连接配置 DO
 *
 * @author 芋道源码
 */
@TableName("iot_device_modbus_config")
@KeySequence("iot_device_modbus_config_seq")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class IotDeviceModbusConfigDO extends TenantBaseDO {
 
    /**
     * 主键
     */
    @TableId
    private Long id;
    /**
     * 产品编号
     *
     * 关联 {@link IotProductDO#getId()}
     */
    private Long productId;
    /**
     * 设备编号
     *
     * 关联 {@link IotDeviceDO#getId()}
     */
    private Long deviceId;
 
    /**
     * Modbus 服务器 IP 地址
     */
    private String ip;
    /**
     * Modbus 服务器端口
     */
    private Integer port;
    /**
     * 从站地址
     */
    private Integer slaveId;
    /**
     * 连接超时时间,单位:毫秒
     */
    private Integer timeout;
    /**
     * 重试间隔,单位:毫秒
     */
    private Integer retryInterval;
    /**
     * 模式
     *
     * @see IotModbusModeEnum
     */
    private Integer mode;
    /**
     * 数据帧格式
     *
     * @see IotModbusFrameFormatEnum
     */
    private Integer frameFormat;
    /**
     * 状态
     *
     * 枚举 {@link cn.iocoder.yudao.framework.common.enums.CommonStatusEnum}
     */
    private Integer status;
 
}