Skip to content

Unable to set parameter names on methods #1845

Open
@dakotahorstman

Description

@dakotahorstman

Describe the bug

UaExpert nor TwinCat shows any names for parameters of methods registered with asyncua. This causes major confusion, especially when imported into something like TwinCat, where you can't make heads or tails of which parameter is which.

Image

To Reproduce

Run examples/server-methods.py. Produces the screenshot above for func_async.

Expected behavior

There to be names associated with parameters, such as with Server.RequestServerStateChange in the OPC tree:

Image

Or Server.GetMonitoredItems which also has named Output Arguments:

Image

Screenshots

One of my methods as it is imported into TwinCat 3 4026:

Image

Version

Python-Version: 3.12.11

opcua-asyncio Version (e.g. master branch, 0.9): 1.1.6

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