From aed11a430086a6ed2357007b6d761086012b738d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com> Date: Thu, 4 May 2023 17:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/example/bpa/app/DeviceData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/bpa/app/DeviceData.java b/app/src/main/java/com/example/bpa/app/DeviceData.java index 813e04c..76b12a7 100644 --- a/app/src/main/java/com/example/bpa/app/DeviceData.java +++ b/app/src/main/java/com/example/bpa/app/DeviceData.java @@ -569,7 +569,7 @@ public class DeviceData { * @param value */ public void setCalibrationWeight(short value, IWriteCallBack callback) { - ModbusTcpServer.get().WriteShort("250", value, callback); + ModbusTcpServer.get().WriteShort("VW250", value, callback); } /** @@ -578,7 +578,7 @@ public class DeviceData { * @param value */ public void setCalibrationWeight9(short value, IWriteCallBack callback) { - ModbusTcpServer.get().WriteShort("254", value, callback); + ModbusTcpServer.get().WriteShort("VW254", value, callback); }