camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [2/2] camel git commit: CAMEL-11709: Camel-Milo component cannot write to newer server versions. Thanks to Dennis Pries for the patch.
Date Sun, 27 Aug 2017 09:59:22 GMT
CAMEL-11709: Camel-Milo component cannot write to newer server versions. Thanks to Dennis Pries
for the patch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/239e1dc2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/239e1dc2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/239e1dc2

Branch: refs/heads/master
Commit: 239e1dc2d8e09d80ae224bfbdcef06f10aa65ad1
Parents: 458fe95
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Sun Aug 27 11:51:24 2017 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Sun Aug 27 11:51:24 2017 +0200

----------------------------------------------------------------------
 .../camel/component/milo/client/MiloClientConnection.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/239e1dc2/components/camel-milo/src/main/java/org/apache/camel/component/milo/client/MiloClientConnection.java
----------------------------------------------------------------------
diff --git a/components/camel-milo/src/main/java/org/apache/camel/component/milo/client/MiloClientConnection.java
b/components/camel-milo/src/main/java/org/apache/camel/component/milo/client/MiloClientConnection.java
index b521b0b..a19e963 100644
--- a/components/camel-milo/src/main/java/org/apache/camel/component/milo/client/MiloClientConnection.java
+++ b/components/camel-milo/src/main/java/org/apache/camel/component/milo/client/MiloClientConnection.java
@@ -26,6 +26,7 @@ import org.apache.camel.component.milo.client.internal.SubscriptionManager;
 import org.eclipse.milo.opcua.sdk.client.api.config.OpcUaClientConfigBuilder;
 import org.eclipse.milo.opcua.stack.core.Stack;
 import org.eclipse.milo.opcua.stack.core.types.builtin.DataValue;
+import org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode;
 import org.eclipse.milo.opcua.stack.core.types.builtin.Variant;
 import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger;
 
@@ -113,9 +114,9 @@ public class MiloClientConnection implements AutoCloseable {
             return (DataValue)value;
         }
         if (value instanceof Variant) {
-            return new DataValue((Variant)value);
+            return new DataValue((Variant)value, StatusCode.GOOD, null, null);
         }
-        return new DataValue(new Variant(value));
+        return new DataValue(new Variant(value), StatusCode.GOOD, null, null);
     }
 
-}
+}
\ No newline at end of file


Mime
View raw message