Skip to content

Documentation to test method of minimal example OPC UA server missing #1908

@aliksimon

Description

@aliksimon

In the nice gentle introduction to a minimal server on https://opcua-asyncio.readthedocs.io/en/latest/usage/get-started/minimal-server.html, it is described how to use uals and uaread to access variables and how to add a method. It is missing how to use uacall to use this method.

Since I tried for a while without success, it would be very helpful if an example how to call the method can be included.

For me, it worked with

$ uacall --url=opc.tcp://127.0.0.1:4840 -n i=85 -m 2:ServerMethod 3
resulting result_variants=6

I tried beforehand:

$ uacall --url=opc.tcp://127.0.0.1:4840 --nodeid "ns=2;s=ServerMethod" 3
No methods in selected node and no method given

and

$ uacall --url=opc.tcp://127.0.0.1:4840 --nodeid "ns=2;s=ServerMethod" -m ServerMethod 3

and

$ uacall --url=opc.tcp://127.0.0.1:4840 --nodeid "i=85" --method ServerMethod 3
The requested operation has no match to return.(BadNoMatch)

without success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions