This is an automated email from the ASF dual-hosted git repository.

justinchen pushed a commit to branch new_opc_server
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/new_opc_server by this push:
     new 86b4aa646e6 f
86b4aa646e6 is described below

commit 86b4aa646e6155db3b80912469402520914e3de5
Author: Caideyipi <[email protected]>
AuthorDate: Thu Dec 4 15:30:21 2025 +0800

    f
---
 .../src/main/java/org/apache/iotdb/opcua/ClientTest.java              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua/ClientTest.java 
b/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua/ClientTest.java
index f0ddea1d1e3..f5a8314f9cc 100644
--- 
a/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua/ClientTest.java
+++ 
b/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua/ClientTest.java
@@ -67,7 +67,7 @@ public class ClientTest implements ClientExample {
     System.out.println("读取状态: " + readValue.getStatusCode());
 
     // 2. 尝试写入新值
-    Variant newValue = new Variant(42.0);
+    Variant newValue = new Variant(42.0f);
     DataValue writeValue = new DataValue(newValue, StatusCode.GOOD, new 
DateTime(), new DateTime());
 
     System.out.println("尝试写入值: " + newValue.getValue());
@@ -103,7 +103,7 @@ public class ClientTest implements ClientExample {
         LocalizedText.english("反应釜压力传感器"),
         Unsigned.uint(0), // writeMask
         Unsigned.uint(0), // userWriteMask
-        new Variant(101.3), // 初始压力值 101.3 kPa
+        new Variant(101.3f), // 初始压力值 101.3 kPa
         Identifiers.Float, // 浮点数类型
         ValueRanks.Scalar, // 标量
         null, // arrayDimensions

Reply via email to