Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring event subscriptions for multiple events #2098

Closed
meshell opened this issue Nov 2, 2023 · 2 comments
Closed

Configuring event subscriptions for multiple events #2098

meshell opened this issue Nov 2, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@meshell
Copy link

meshell commented Nov 2, 2023

I tried to use the OPC publisher to subscribe to multiple events using the Simple event filter. However it is not clear from the documentation how the configuration has to look like for multiple events.
I tried different ways, for example using multiple OPCNodes:

[
    {
        "EndpointUrl": "opc.tcp://testserver:62563/Quickstarts/SimpleEventsServer",
        "OpcNodes": [
            {
                "Id": "i=2253",
                "DisplayName": " Event1 ",
                "EventFilter": {
                    "TypeDefinitionId": " ns=2;i=1000"
                }
            },
            {
                "Id": "i=2253",
                "DisplayName": " Event2",
                "EventFilter": {
                    "TypeDefinitionId": " ns=2;i=1001"
                }
            }

        ]
    }
]

However none worked. With the example above, I always only got the last defined event.
Please update the documentation with an example for multiple event subscription and/or if the config above should work investigate further, why it doesn't.

@marcschier marcschier self-assigned this Nov 3, 2023
@marcschier marcschier added this to the 2.9.3 milestone Nov 3, 2023
@marcschier marcschier added the bug Something isn't working label Nov 3, 2023
@marcschier
Copy link
Collaborator

It looks like a bug where the monitored item is overridden due to the same node ID being the source.

marcschier added a commit that referenced this issue Nov 13, 2023
Fixes for 

* #2090 
* #2091 (Updated documentation)
* #2096 
* #2097 
* #2098 
* #2100
@marcschier
Copy link
Collaborator

The issue is fixed in the latest preview release. The image is available at mcr.microsoft.com/iotedge/opc-publisher:2.9.3-preview2. Please let me know whether this does not fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants