WriteValues returning Bad_WriteNotSupported after migrating to Milo 1.0.1 #1514
alexandrenetbr
started this conversation in
General
Replies: 1 comment 4 replies
-
It looks like you're including Build the edit: just null timestamps are required, I think. var dv = DataValue.valueOnly(Variant.ofInt32(42)); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Kevin,
I'm migrating an industrial OPC UA client from Milo 0.6.3 to Milo 1.0.1, and I've noticed that all write operations are now returning the following error:
StatusCode[name=Bad_WriteNotSupported, value=0x80730000, quality=bad]
The same code works perfectly with 0.6.3.
Here is a simplified snippet of how I’m performing the writes:
List nodes = tags.stream()
.map(t -> new NodeId(comm.getNamespaceIndex(), t.getFullName()))
.collect(Collectors.toList());
List values = ImmutableList.copyOf(tags.stream()
.map(t -> new DataValue(new Variant(ScalingHelper.scaleToDevice(t, t.getValue())), StatusCode.GOOD,
DateTime.now()))
.toArray(DataValue[]::new));
client.writeValues(nodes, values);
Some details:
Is there any known breaking change between 0.6.3 and 1.0.1 related to writeValues() or how DataValues should be constructed?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions