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
| package com.fastbee.common.core.mq.message;
|
| import com.fastbee.common.core.protocol.modbus.ModbusCode;
| import lombok.Data;
|
| /**
| * @author gsb
| * @date 2022/12/9 10:15
| */
| @Data
| public class PropRead {
|
| /**设备编号*/
| private String serialNumber;
| /**寄存器起始地址*/
| private int address;
| /**
| * 读取寄存器个数
| */
| private int count;
| /**数据结果长度计算值*/
| private int length;
| /**
| * 从机地址
| */
| private int slaveId;
| /**
| * 读取个数
| */
| private int quantity;
| /**
| * 数据
| */
| private String data;
| /**
| * 功能码
| */
| private ModbusCode code;
| }
|
|