Writing array values in MappConnect

I’m trying to read/write basic datatype arrays using MappConnect but it doesn’t seem to work. I can read and write the entire array, but a single element doesn’t work.

If I try to write

{
    "value" : [0,0,0]
}

to URL:

https://localhost:8443/api/1.0/opcua/sessions/1/nodes/ns%3D5%3Bs%3D%3A%3Ademo%3Atest_arrays.New_Member1.ints/attributes/Value

Which should be

ns=5;s=::demo:test_arrays.New_Member1.ints

It works fine.

Writing

{
    "value" : 0
}

to nodeID

ns=5;s=::demo:test_arrays.New_Member1.ints[0]

Fails and says it can’t find the node.

Is this possible?

Update: It looks like it is possible to read/write. You do have to explicitly enable the array elements to make them accessible individually.

1 Like