OPCUAClient_CreateSubscription (FUN)
FUNCTION OPCUAClient_CreateSubscription : RTS_IEC_HANDLE
This function creates a subscription on the OPC UA server. The subscription parameters are typically changed by the OPC UA server and sent back as reviced parameters. These parameters are used for timeout calculation and so on. The sending of publish requests is done by the runtime system itself. So no publish requests must be sent.
- InOut:
Scope
Name
Type
Comment
Return
OPCUAClient_CreateSubscriptionRTS_IEC_HANDLEA handle to the subscription.
Input
hConnectionRTS_IEC_HANDLEHandle to the connection where to create the subscription.
publishingIntervalOpcUa_DoubleThe publishing interval that should be used by the server.
lifetimeCountOpcUa_UInt32The liftetime count of the subscription.
maxKeepAliveCountOpcUa_UInt32The maximum number of publishing intervals befor a keepalive is sent.
maxNotificationsPerPublishOpcUa_UInt32The maximum number of notificaitons returned by one publihs response.
publishingEnabledOpcUa_BooleanFlag if publishing is enabled on the server.
priorityOpcUa_ByteThe priority of the subscription in respect to other subscriptions of the same session.
pResultPOINTER TO RTS_IEC_RESULT
Result of the operation.
callbackIOPCUAClientSubscriptionCallbackCallback interface to get informed on state and parameter changes.