From 290f2a28f42ef340db651901fa513c6beae8d899 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 21 九月 2023 11:34:21 +0800
Subject: [PATCH] 待机逻辑更改,超过配置的时间数据不变认为待机

---
 test/plc_test.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/plc_test.go b/test/plc_test.go
index 0b5f564..92ea393 100644
--- a/test/plc_test.go
+++ b/test/plc_test.go
@@ -9,9 +9,9 @@
 
 func TestWriteHoldingRegister(t *testing.T) {
 	Init()
-	ipPort := "192.168.20.250:502"
-	address := 1104
-	value := 1104
+	ipPort := "127.0.0.1:502"
+	address := 1001
+	value := 1001
 	err := service.WriteHoldingRegister(ipPort, address, value)
 	if err != nil {
 		log.Fatal(err)

--
Gitblit v1.8.0