From 53d80c839ad2aad0a0482ca43fca1fc3a95b9d1c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 03 十一月 2023 17:30:54 +0800
Subject: [PATCH] 更改路由

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

diff --git a/test/plc_test.go b/test/plc_test.go
index 92ea393..d0e2475 100644
--- a/test/plc_test.go
+++ b/test/plc_test.go
@@ -17,7 +17,7 @@
 		log.Fatal(err)
 	}
 	var readValue int
-	raw, err := service.ReadHoldingRegister(ipPort, address, 1)
+	raw, err := service.ReadByModbusTCP(ipPort, address, 1)
 	if err != nil {
 		log.Fatal(err)
 	}

--
Gitblit v1.8.0