Search code examples
clientopc-uaopen62541

open62541 browsing nodes an using its methods


I want to browse a specific node on my OPC UA Server and use its method. I use the open62541 stack and i want to use a selfmade client. My Client connects to the Server and then i use the given example to browse some Objects. It shows me the first layer of nodes after the root-folder- How can i find a specific node? Or have i to browse to this point? Is there an example file in the open62541 project which i don't see that would open my eyes?

I also find the Method "Service_TranslateBrowsePathsToNodeIds" but i'm not quite sure how to use it the right way and which part is interesting for me.

As an example: I want to browse the Node "FileSystem", which is in a deeper layer than the root-folder, and want to use its Method createFile.


Solution

  • To call a method, you need two node ids:

    • Object node id which contains the method
    • Method node id

    If you already have these node ids, you can call the method right away. If not, OPC UA in general supports two options to get these node ids: