9.3 SetSubscriptionDurable

SetSubscriptionDurable Method is used to set a Subscription into a mode where MonitoredItem data and event queues are stored and delivered even if an OPC UA Client was disconnected for a longer time or the OPC UA Server was restarted. Its intended use is defined in OPC 10000-4.

Signature

	SetSubscriptionDurable(
		 [in] UInt32 subscriptionId
		 [in] UInt32 lifetimeInHours
		 [out] UInt32 revisedLifetimeInHours
		);
Argument Description
subscriptionIdIdentifier of the Subscription.
lifetimeInHoursThe requested lifetime in hours for the durable Subscription.
revisedLifetimeInHoursThe revised lifetime in hours the Server applied to the durable Subscription.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_SubscriptionIdInvalidDefined in OPC 10000-4
Bad_InvalidState

Defined in OPC 10000-4

This is returned when a Subscription already contains MonitoredItems.

Bad_UserAccessDenied

Defined in OPC 10000-4

The Method was not called in the context of the Session that owns the Subscription.

Table 120 specifies the AddressSpace representation for the SetSubscriptionDurable Method.

Table 120 – SetSubscriptionDurable Method AddressSpace definition
Attribute Value
BrowseNameSetSubscriptionDurable
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory
HasPropertyVariableOutputArgumentsArgument[] PropertyTypeMandatory
Conformance Units
Base Info ServerType