From d457b47a702857cdefb56a0a518201ba8ad2505f Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 16 九月 2023 19:07:01 +0800
Subject: [PATCH] apache plc4x短连接

---
 api/v1/plc.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/v1/plc.go b/api/v1/plc.go
index d244314..5f3b279 100644
--- a/api/v1/plc.go
+++ b/api/v1/plc.go
@@ -6,7 +6,7 @@
 	"apsClient/model/response"
 	_ "apsClient/model/response"
 	"apsClient/pkg/contextx"
-	"apsClient/pkg/plc/modbusx"
+	"apsClient/pkg/plc/apacheplc4x"
 	"apsClient/service"
 	"github.com/gin-gonic/gin"
 	"github.com/spf13/cast"
@@ -34,7 +34,7 @@
 	resp.TotalNumber = cast.ToInt(totalNumber)
 
 	plcStatus := 1 //鏂紑杩炴帴
-	isConnect := modbusx.IsConnect()
+	isConnect := apacheplc4x.IsConnect()
 	if isConnect {
 		if resp.FinishNumber > 0 { //鐢熶骇
 			plcStatus = 2

--
Gitblit v1.8.0