opcua-client-gui icon indicating copy to clipboard operation
opcua-client-gui copied to clipboard

Browsepath

Open aschaepper opened this issue 6 years ago • 2 comments

Hello together

I just used the export browsepath functionality which is quite handy. So I have a question reagarding it.

Is there a reason you use , "commas" instead of / "slashes". As far as I can see commas are not according to the standard and I have to replace them with the / Here is a link: http://documentation.unified-automation.com/uasdkdotnet/2.0.0/L3ClientTutExample13.html

Also, there should be a / in the beginning of the browse path for signaling the root of the path, otherwise it would be a relative path.

so this path from the opcua-client: 0:Root,0:Objects,2:DeviceSet,2:X20BC008U,2:ParameterSet,2:ConfigurationStatus

Should look like this: /0:Root/0:Objects/2:DeviceSet/2:X20BC008U/2:ParameterSet/2:ConfigurationStatus

But I could be wrong, thanks anyway for the great software!

aschaepper avatar Aug 23 '19 08:08 aschaepper

I though I wrote that because you can past it directly into pyton code as a string mynode.get_child(PASTE HERE). Something I needed quite often. But now I see that it does not work since you need " around each strings.... and you have a point that the standard uses / . So we should add support for / in get_child method and split by /. PR welcome ;-)

oroulet avatar Aug 23 '19 08:08 oroulet

so it must have worked somewhere since I wrote that... but using / seems like a good proposition although we need a backward compatible PR

oroulet avatar Aug 23 '19 08:08 oroulet