modbus协议轮询设备信息

This commit is contained in:
2025-07-17 10:13:19 +08:00
parent e2663b18d5
commit 1da9867372
10 changed files with 612 additions and 2 deletions

17
pom.xml
View File

@ -165,6 +165,23 @@
<artifactId>spring-integration-mqtt</artifactId>
</dependency>
<!-- modbus -->
<dependency>
<groupId>net.wimpi</groupId>
<artifactId>j2mod</artifactId>
<version>3.1.0</version> <!-- 提供TCPMasterConnection、SerialConnection等类 -->
</dependency>
<!-- Resilience4j 断路器核心 -->
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-circuitbreaker</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>1.3.4</version> <!-- 根据你的 Spring 版本选择兼容的版本 -->
</dependency>
<!-- velocity代码生成使用模板 -->
<dependency>
<groupId>org.apache.velocity</groupId>