Browse Source

补充配置文件输送线ModbusTcp配置

LZH 1 năm trước cách đây
mục cha
commit
800d1062b4

+ 0 - 1
ruoyi-admin/src/main/java/com/ruoyi/xuankuang/controller/test/TankTestController.java

@@ -7,7 +7,6 @@ import com.ruoyi.hard.xuankang.StirringTankClient;
 import com.ruoyi.hard.xuankang.BeltLineClient;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import io.swagger.models.auth.In;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;

+ 6 - 3
ruoyi-admin/src/main/resources/application-dev.yml

@@ -71,11 +71,14 @@ init-task:
 modbus:
     tcp-master:
         first: # 搅拌槽
-            open: false
+            open: true
             host: localhost
-            port: 8080
+            port: 502
         second: # 拆包机
             open: false
             host: localhost
             port: 8080
-
+        third:
+            open: false
+            host: 192.168.100.71
+            port: 502

+ 4 - 1
ruoyi-admin/src/main/resources/application-prod.yml

@@ -78,7 +78,10 @@ modbus:
             open: true
             host: 192.168.100.136
             port: 502
-
+        third:
+            open: true
+            host: 192.168.100.71
+            port: 502