Subscribe
The listener is subscribed for messages with this method.
Syntax
METHOD Subscribe : HRESULT
VAR_INPUT
ipMessageFilterConfig : POINTER TO ITcEventFilterConfig;
ipAlarmFilterConfig : POINTER TO ITcEventFilterConfig;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
ipMessageFilterConfig | POINTER TO ITcEventFilterConfig | Pointer to ITcEventFilterConfig if a filter is to be activated. |
ipAlarmFilterConfig | POINTER TO ITcEventFilterConfig | Pointer to ITcEventFilterConfig if a filter is to be activated. |
Return value
Name | Type | Description |
---|---|---|
Subscribe | HRESULT | Returns S_OK if the method call was successful. Returns ADS_E_EXISTS if the listener is already subscribed. Otherwise returns HRESULT as the error code. |