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
, 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.
OPCPublisher version is 2.9.11
Config content is
My questions:
- 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.
- Is there a problem with this code?