Skip to content

OPCPublisher cannot subscribe to the Alarms message that already exists on the Server #2434

@wudiqiang2024

Description

@wudiqiang2024

After OPCPublisher is started, it is unable to subscribe to the Alarms message that already exists on the Server. After checking the documentation, I found that ConditionHandling can be configured. However, after the configuration, although the OPCPublisher log prints the call to ConditionRefresh

Image

, but the Server does not receive the request. After tracing the source code, I found that if this code in the OpcUaSubscription class is replaced with "ConditionRefresh();", the Server can receive the request.

Image

OPCPublisher version is 2.9.11
Config content is

Image

My questions:

  1. Is it necessary to configure the ConditionHandling monitoring type for it to be a Condition? However, I only want to subscribe to existing messages on the server when the OPC Publisher starts, not to subscribe to duplicate messages.
  2. Is there a problem with this code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions