From cacf363f222e354cad6db18c4a00fb1097d35c2c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 09 十一月 2023 14:30:58 +0800 Subject: [PATCH] fix --- 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