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_CreateSubscription

RTS_IEC_HANDLE

A handle to the subscription.

Input

hConnection

RTS_IEC_HANDLE

Handle to the connection where to create the subscription.

publishingInterval

OpcUa_Double

The publishing interval that should be used by the server.

lifetimeCount

OpcUa_UInt32

The liftetime count of the subscription.

maxKeepAliveCount

OpcUa_UInt32

The maximum number of publishing intervals befor a keepalive is sent.

maxNotificationsPerPublish

OpcUa_UInt32

The maximum number of notificaitons returned by one publihs response.

publishingEnabled

OpcUa_Boolean

Flag if publishing is enabled on the server.

priority

OpcUa_Byte

The priority of the subscription in respect to other subscriptions of the same session.

pResult

POINTER TO RTS_IEC_RESULT

Result of the operation.

callback

IOPCUAClientSubscriptionCallback

Callback interface to get informed on state and parameter changes.