UaClientSdk::UaSession Class Reference
[UA Client Library]

#include <uasession.h>

List of all members.


Public Member Functions

 UaSession ()
 ~UaSession ()
UaStatus connect (const UaString &sURL, SessionConnectInfo &sessionConnectInfo, SessionSecurityInfo &sessionSecurityInfo, UaSessionCallback *pSessionCallback)
UaStatus disconnect (ServiceSettings &serviceSettings, OpcUa_Boolean bDeleteSubscriptions)
UaStatus browse (ServiceSettings &serviceSettings, const UaNodeId &nodeToBrowse, const BrowseContext &browseContext, UaByteString &continuationPoint, UaReferenceDescriptions &referenceDescriptions)
UaStatus browseNext (ServiceSettings &serviceSettings, OpcUa_Boolean releaseContinuationPoint, UaByteString &continuationPoint, UaReferenceDescriptions &referenceDescriptions)
UaStatus translateBrowsePathsToNodeIds (ServiceSettings &serviceSettings, const UaBrowsePaths &browsePaths, UaBrowsePathResults &browsePathResults, UaDiagnosticInfos &diagnosticInfos)
UaStatus registerNodes (ServiceSettings &serviceSettings, const UaNodeIdArray &nodesToRegister, UaNodeIdArray &registeredNodesIds)
UaStatus unregisterNodes (ServiceSettings &serviceSettings, const UaNodeIdArray &registeredNodesIds)
UaStatus read (ServiceSettings &serviceSettings, OpcUa_Double maxAge, OpcUa_TimestampsToReturn timeStamps, const UaReadValueIds &nodesToRead, UaDataValues &values, UaDiagnosticInfos &diagnosticInfos)
UaStatus beginRead (ServiceSettings &serviceSettings, OpcUa_Double maxAge, OpcUa_TimestampsToReturn timeStamps, const UaReadValueIds &nodesToRead, OpcUa_UInt32 transactionId)
UaStatus write (ServiceSettings &serviceSettings, const UaWriteValues &nodesToWrite, UaStatusCodeArray &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus beginWrite (ServiceSettings &serviceSettings, const UaWriteValues &nodesToWrite, OpcUa_UInt32 transactionId)
UaStatus createSubscription (ServiceSettings &serviceSettings, UaSubscriptionCallback *pUaSubscriptionCallback, OpcUa_UInt32 clientSubscriptionHandle, SubscriptionSettings &subscriptionSettings, OpcUa_Boolean publishingEnabled, UaSubscription **ppUaSubscription)
UaStatus deleteSubscription (ServiceSettings &serviceSettings, UaSubscription **ppUaSubscription)
UaStatus call (ServiceSettings &serviceSettings, const CallIn &callRequest, CallOut &results)
UaStatus beginCall (ServiceSettings &serviceSettings, const CallIn &callRequest, OpcUa_UInt32 transactionId)
UaStatus historyReadRawModified (ServiceSettings &serviceSettings, const HistoryReadRawModifiedContext &historyReadRawModifiedContext, const UaHistoryReadValueIds &nodesToRead, HistoryReadDataResults &results)
UaStatus historyReadProcessed (ServiceSettings &serviceSettings, const HistoryReadProcessedContext &historyReadProcessedContext, const UaHistoryReadValueIds &nodesToRead, HistoryReadDataResults &results)
UaStatus historyReadAtTime (ServiceSettings &serviceSettings, const HistoryReadAtTimeContext &historyReadAtTimeContext, const UaHistoryReadValueIds &nodesToRead, HistoryReadDataResults &results)
UaStatus historyUpdateData (ServiceSettings &serviceSettings, const UpdateDataDetails &updateDataDetails, UaHistoryUpdateResults &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus historyDeleteRawModified (ServiceSettings &serviceSettings, const DeleteRawModifiedDetails &deleteDetails, UaHistoryUpdateResults &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus historyDeleteAtTime (ServiceSettings &serviceSettings, const DeleteAtTimeDetails &deleteDetails, UaHistoryUpdateResults &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus addNodes (ServiceSettings &serviceSettings, const UaAddNodesItems &nodesToAdd, UaAddNodesResults &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus addReferences (ServiceSettings &serviceSettings, const UaAddReferencesItems &referencesToAdd, UaStatusCodeArray &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus deleteNodes (ServiceSettings &serviceSettings, const UaDeleteNodesItems &nodesToDelete, UaStatusCodeArray &results, UaDiagnosticInfos &diagnosticInfos)
UaStatus deleteReferences (ServiceSettings &serviceSettings, const UaDeleteReferencesItems &referencesToDelete, UaStatusCodeArray &results, UaDiagnosticInfos &diagnosticInfos)

Detailed Description

The UaSession class manges a UA Client side application session. This is the main class for connecting with any OPC UA Server. The class manages the connection to an OPC Unified Architecture server and the application session established with the server. The class provides all none Subscription related UA Services as synchronous and asynchronous methods.

Constructor & Destructor Documentation

UaClientSdk::UaSession::UaSession (  ) 

Construction

UaClientSdk::UaSession::~UaSession (  ) 

Destruction


Member Function Documentation

UaStatus UaClientSdk::UaSession::connect ( const UaString sURL,
SessionConnectInfo sessionConnectInfo,
SessionSecurityInfo sessionSecurityInfo,
UaSessionCallback pSessionCallback 
)

Establish a connection to the OPC UA server Calling this function sucessfully creates a secure channel to the server endpoint and it creates and activates an application session in the server application.
The SDK is managing the connection to the server by

  • Monitoring the status of the session with read calls to the server status variable. The frequence of the read calls can be controlled with the setting SessionConnectInfo::nWatchdogTime
  • Reconnect on TCP/IP or SecureChannel level if the connection was lost
  • Recreation of the session if the session timed out or the server was restarted
  • The callback function UaSessionCallback::connectionStatusChanged provides information about the current status of the session
Parameters:
sURL  [in] The URL identifying an OPC UA Server.
UA TCP: opc.tcp://MACHINE:4840
Web Service: https://MACHINE/ServerName
sessionConnectInfo  [in,out] The client defined session connect settings. See SessionConnectInfo for more info.
sessionSecurityInfo  [in,out] The client defined session security settings. See SessionSecurityInfo for more info.
pSessionCallback  [in] Pointer to callback interface for session object. See UaSessionCallback for more details.

UaStatus UaClientSdk::UaSession::disconnect ( ServiceSettings serviceSettings,
OpcUa_Boolean  bDeleteSubscriptions 
)

Disconnect client application from OPC UA server. Calling this function closes the session and the secure channel connection to the server. The subscriptions assigned the session are also deleted if the flag bDeleteSubscriptions is set to OpcUa_True. If subscritptions should be transfered to other sessions, the flag bDeleteSubscriptions must be set to OpcUa_False.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
bDeleteSubscriptions  [in] Flag to indicate if all subscriptions assigned to the session should be deleted

UaStatus UaClientSdk::UaSession::browse ( ServiceSettings serviceSettings,
const UaNodeId nodeToBrowse,
const BrowseContext browseContext,
UaByteString continuationPoint,
UaReferenceDescriptions &  referenceDescriptions 
)

Browse OPC server address space. The Browse Service is used by a client to navigate through the Address Space by passing a starting Node and browse filters. The server returns the list of referenced nodes matching the filter criteria.
The Browse Service takes a list of starting Nodes and returns a list of connected Nodes for each starting Node. Nevertheless, most clients will only pass one starting Node for the main purpose of building a tree hierarchy. Since the OPC UA Address Space can be a full-meshed network and is not limited to a pure hierarchy, the capability to pass in a list of starting Nodes is mainly used to browse metadata like the Properties of a list of Variables. The client SDK provides different browse methods, one for a single starting Node and one for a list of starting Nodes.
This simpliefied browse method is used for a single starting node.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
nodeToBrowse  [in] NodeId of the starting Node
browseContext  [in] Filter settings for the browse call. See BrowseContext for more details
continuationPoint  [out] A continuation point is returned when the server was not able to deliver all results in the Browse response. The limitation can be set by the client in the request or by the server during Browse processing. The continuation point can be passed to browseNext to get the remaining results
referenceDescriptions  [out] List of references and target Node information for the Nodes passing the filter criteria set in the request

UaStatus UaClientSdk::UaSession::browseNext ( ServiceSettings serviceSettings,
OpcUa_Boolean  releaseContinuationPoint,
UaByteString continuationPoint,
UaReferenceDescriptions &  referenceDescriptions 
)

Continue a previous Browse request. This method is only used to continue a browse started with the browse method if not all results could be returned by the browse or a following browseNext call. The number of Nodes to return can be limited by the client in the browse request or by the Server during processing the Browse Service call.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
releaseContinuationPoint  [in] A flag that indicates if the method is called only for releasing the memory associated with the continuation point in the server or if the next set of results should be returned. Clients should always call this Service even if they do not want to continue browsing. In this case this flag is set to true
continuationPoint  [in,out] Continuation points returned from a previous browse or browseNext call. A continuation point is returned when the server was not able to deliver all results in the BrowseNext response. The limitation can be set by the client in the browse or by the server during BrowseNext processing. The continuation point can be passed to browseNext to get the remaining results
referenceDescriptions  [out] List of references and target Node information for the Nodes passing the filter criteria set in the first browse call

UaStatus UaClientSdk::UaSession::translateBrowsePathsToNodeIds ( ServiceSettings serviceSettings,
const UaBrowsePaths &  browsePaths,
UaBrowsePathResults &  browsePathResults,
UaDiagnosticInfos &  diagnosticInfos 
)

Translate a browse path to a NodeId. This Service is used to access components of an Object based on the knowledge about the ObjectType. Since the NodeId of a Node is needed to access information provided by the Node like subscribing for Variable Value changes or to call a Method, it is necessary to know the NodeIds of components of Objects. Since OPC UA allows programming software components with built-in knowledge of ObjectTypes, UA needs to provide a mechanism to return the NodeIds for components of an Object instance based on the knowledge about the ObjectType. This mechanism is built on the requirement that the BrowseNames of components in the instance must be the same like BrowseNames of components in the type.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
browsePaths  [in] The list of browse paths for which NodeIds are requested
browsePathResults  [out] List of results for the passed starting Nodes and paths
diagnosticInfos  [out] List of diagnostic information

UaStatus UaClientSdk::UaSession::registerNodes ( ServiceSettings serviceSettings,
const UaNodeIdArray &  nodesToRegister,
UaNodeIdArray &  registeredNodesIds 
)

Register nodes to create shortcuts in the server. This method allows clients to optimize the cyclic access to Nodes for example for writing variable values or for calling methods. There are two levels of optimization.
The first level is to reduce the amount of data on the wire for the addressing information. Since NodeIds are used for addressing in Nodes and NodeIds can be very long, a more optimized addressing method is desirable for cyclic use of Nodes. Classic OPC provided the concept to create handles for items by adding them to a group. RegisterNodes provides a similar concept to create handles for Nodes by returning a numeric NodeId that can be used in all functions accessing information from the server. The transport of numeric NodeIds is very efficient in the OPC UA binary protocol.
The second level of optimization is possible inside the server. Since the client is telling the server that he wants to use the Node more frequently by registering the Node, the server is able to prepare everything that is possible to optimize the access to the Node.
The handles returned by the server are only valid during the lifetime of the Session that was used to register the Nodes. Clients must call unregisterNodes if the Node is no longer used to free the resources used in the server for the optimization. This method should not be used to optimize the cyclic read of data since OPC UA provides a much more optimized mechanism to subscribe for data changes.
Clients do not have to use the Service and servers can simply implement the Service only returning the same list of NodeIds that was passed in if there is no need to optimize the access.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
nodesToRegister  [in] The list of Nodes to register. For each Node the NodeId of the Node is passed in
registeredNodesIds  [out] List of NodeIds identifying the registered Node. This NodeId is typically an optimized numeric Node used as handle to the registered Node. This NodeId is only valid in the Session context it was created in.
If the server does not know the NodeId or he is not able to optimize the access to the Node, he simply returns the NodeId provided in the request

UaStatus UaClientSdk::UaSession::unregisterNodes ( ServiceSettings serviceSettings,
const UaNodeIdArray &  registeredNodesIds 
)

Unregister nodes to delete shortcuts in the server. Handles created with the Service RegisterNodes must be freed by the client using the method unregisterNodes to free the resources in the server if the registered nodes are not longer needed.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
registeredNodesIds  [in] The list of Nodes to unregister

UaStatus UaClientSdk::UaSession::read ( ServiceSettings serviceSettings,
OpcUa_Double  maxAge,
OpcUa_TimestampsToReturn  timeStamps,
const UaReadValueIds &  nodesToRead,
UaDataValues &  values,
UaDiagnosticInfos &  diagnosticInfos 
)

Reads attribute values synchronous from OPC server The Read Service is used to read one or more Attributes of one or more Nodes. It allows also reading subsets or single elements of array values and to define a valid age of values to be returned to reduce the need for device reads. Like most other Services, the read is optimized for bulk read operations and not for reading single Attribute values. Typically all Node Attributes are readable. For the Value Attribute the Read rights are indicated by the AccessLevel and UserAccessLevel Attribute of the Variable.

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
maxAge  [in] The maximum age of the value to be read in milliseconds. This parameter allows clients to reduce the communication between server and data source by allowing the server to return a cached value that is not older than the defined time period. Setting a value of 0 forces the server to obtain the current value. This is similar to a device read in Classic OPC
timeStamps  [in] OPC UA defines two timestamps, the source and the server timestamp. This parameter allows the client to define which timestamps the server should return with the value.
The source timestamp is only available for Value Attributes. The source timestamp is used to reflect the timestamp that was applied to a Variable value by the data source. It should indicate the last change of the value or status code. The source timestamp must be always generated by the same physical clock. This timestamp type was added for OPC UA to cover the use case to get the timestamp of the last value change which is different than the server timestamp definition.
The server timestamp is used to reflect the time that the server received a Variable value or knew it to be accurate if the changes are reported by exeption and the connection to the data source is operating. This is the behavior expected by Classic OPC
Possible values are:
OpcUa_TimestampsToReturn_Source
OpcUa_TimestampsToReturn_Server
OpcUa_TimestampsToReturn_Both
nodesToRead  [in] List of Nodes and Attributes to read
values  [out] List of read results contained in OpcUa_DataValue structures
diagnosticInfos  [out] List of diagnostic information

UaStatus UaClientSdk::UaSession::beginRead ( ServiceSettings serviceSettings,
OpcUa_Double  maxAge,
OpcUa_TimestampsToReturn  timeStamps,
const UaReadValueIds &  nodesToRead,
OpcUa_UInt32  transactionId 
)

Reads attribute values assynchronous from OPC server See read for more details

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
maxAge  [in] Max age of the values to return. See read for more details
timeStamps  [in] Type of timestamps to return. See read for more details
nodesToRead  [in] List of Nodes and Attributes to read

UaStatus UaClientSdk::UaSession::write ( ServiceSettings serviceSettings,
const UaWriteValues &  nodesToWrite,
UaStatusCodeArray &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Writes variable values synchronous to OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
nodesToWrite  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::beginWrite ( ServiceSettings serviceSettings,
const UaWriteValues &  nodesToWrite,
OpcUa_UInt32  transactionId 
)

Writes variable values asynchronous to OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
nodesToWrite  [in]
transactionId  [in]

UaStatus UaClientSdk::UaSession::createSubscription ( ServiceSettings serviceSettings,
UaSubscriptionCallback pUaSubscriptionCallback,
OpcUa_UInt32  clientSubscriptionHandle,
SubscriptionSettings subscriptionSettings,
OpcUa_Boolean  publishingEnabled,
UaSubscription **  ppUaSubscription 
)

Creates a subscription

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
pUaSubscriptionCallback  [in]
clientSubscriptionHandle  [in]
subscriptionSettings  [in,out]
publishingEnabled  [in]
ppUaSubscription  [out]

UaStatus UaClientSdk::UaSession::deleteSubscription ( ServiceSettings serviceSettings,
UaSubscription **  ppUaSubscription 
)

Deletes a subscription

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
ppUaSubscription  [in,out]

UaStatus UaClientSdk::UaSession::call ( ServiceSettings serviceSettings,
const CallIn callRequest,
CallOut callResponse 
)

Calls a method of an Object in the OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
callRequest  [in] Object and Method to call and input arguments. See CallIn for more details
callResponse  [out] Output arguments and input argument results. See CallOut for more details

UaStatus UaClientSdk::UaSession::beginCall ( ServiceSettings serviceSettings,
const CallIn callRequest,
OpcUa_UInt32  transactionId 
)

Calls a method of an Object in the OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
callRequest  [in] Object and Method to call and input arguments. See CallIn for more details
transactionId  [out] Output arguments and input argument results. See CallOut for more details

UaStatus UaClientSdk::UaSession::historyReadRawModified ( ServiceSettings serviceSettings,
const HistoryReadRawModifiedContext historyReadRawModifiedContext,
const UaHistoryReadValueIds &  nodesToRead,
HistoryReadDataResults results 
)

Reads the history of item values synchronous from OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
historyReadRawModifiedContext  [in]
nodesToRead  [in]
results  [out]

UaStatus UaClientSdk::UaSession::historyReadProcessed ( ServiceSettings serviceSettings,
const HistoryReadProcessedContext historyReadProcessedContext,
const UaHistoryReadValueIds &  nodesToRead,
HistoryReadDataResults results 
)

Reads the processed history of item values synchronous from the OPC server based on a passed aggregate. This method is used to read processed historical values of one or more Nodes in an ordered sequence for the defined time domain. Continuation points are used to continue the read of the ordered sequence if not all data can be returned in one read. The returned number can be limited by the client or the server. The processed values are calculated with the specified aggregate based on the raw data in the history database. The server must use start time, end time, and the resample interval to generate a sequence of time intervals and then calculate an aggregate for each interval.

Predefined aggregates are:

Define for aggregate function Description
OpcUaId_AggregateFunction_Interpolative Returns an interpolated value for the starting time of the interval
OpcUaId_AggregateFunction_Average Returns the average data over the resample interval. It adds up all values in the interval and divides the sum by the number of values
OpcUaId_AggregateFunction_TimeAverage Returns the time weighted average data over the resample interval. A straight line is drawn between each raw value in the interval. The area under the line is divided by the length of the interval to yield the average. Interpolated values are used at the start and at the end of the interval
OpcUaId_AggregateFunction_Total Returns the sum of the data over the resample interval. It adds up all values in the interval
OpcUaId_AggregateFunction_TotalizeAverageReturns the totalized Value (time integral) of the data over the resample interval
OpcUaId_AggregateFunction_Minimum Returns the minimum value in the resample interval
OpcUaId_AggregateFunction_Maximum Returns the maximum value in the resample interval
OpcUaId_AggregateFunction_MinimumActualTimeReturns the minimum value in the resample interval and the timestamp of the minimum value
OpcUaId_AggregateFunction_MaximumActualTimeReturns the maximum value in the resample interval and the timestamp of the maximum value
OpcUaId_AggregateFunction_Range Returns the difference between the minimum and maximum Value over the sample interval
OpcUaId_AggregateFunction_AnnotationCountReturns the number of annotations in the resample interval. Annotations are user entered comments in the history database
OpcUaId_AggregateFunction_Count Returns the number of raw values with good status in the resample interval
OpcUaId_AggregateFunction_DurationInState0The duration of the interval the value was in FALSE state. The value of the aggregate is the time in milliseconds
OpcUaId_AggregateFunction_DurationInState1The duration of the interval the value was in TRUE state. The value of the aggregate is the time in milliseconds
OpcUaId_AggregateFunction_NumberOfTransitionsReturns the number of value changes with good quality in the resample interval
OpcUaId_AggregateFunction_Time
OpcUaId_AggregateFunction_Start Returns the first value in the interval and the timestamp of the first value
OpcUaId_AggregateFunction_End Returns the last value in the interval and the timestamp of the last value
OpcUaId_AggregateFunction_Delta The difference between the first and the last good value in the interval. If the last value is less than the first value, the result will be negative
OpcUaId_AggregateFunction_DurationGood The duration of the interval the value had good quality. The value of the aggregate is the time in milliseconds
OpcUaId_AggregateFunction_DurationBad The duration of the interval the value had bad quality. The value of the aggregate is the time in milliseconds
OpcUaId_AggregateFunction_PercentGood Percentage of the interval the value had good quality (0–100).
PercentGood = DurationGood / ResampleInterval * 100
OpcUaId_AggregateFunction_PercentBad Percentage of the interval the value had bad quality (0–100).
PercentGood = DurationGood / ResampleInterval * 100
OpcUaId_AggregateFunction_WorstQuality Returns the worst quality of the values in the interval. The value of the aggregate is the status code for the worst quality
Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
historyReadProcessedContext  [in] The read processed specific settings for the method call. See HistoryReadProcessedContext for more details
nodesToRead  [out] The list of nodes to read.
results  [out] The list of read results.

UaStatus UaClientSdk::UaSession::historyReadAtTime ( ServiceSettings serviceSettings,
const HistoryReadAtTimeContext historyReadAtTimeContext,
const UaHistoryReadValueIds &  nodesToRead,
HistoryReadDataResults results 
)

Reads the history of item values synchronous from OPC server for the given timestamps

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
historyReadAtTimeContext  [in]
nodesToRead  [in]
results  [out]

UaStatus UaClientSdk::UaSession::historyUpdateData ( ServiceSettings serviceSettings,
const UpdateDataDetails updateDataDetails,
UaHistoryUpdateResults &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Update the history of item values synchronous at OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
updateDataDetails  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::historyDeleteRawModified ( ServiceSettings serviceSettings,
const DeleteRawModifiedDetails deleteDetails,
UaHistoryUpdateResults &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Delete the history of item values synchronous at OPC server

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
deleteDetails  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::historyDeleteAtTime ( ServiceSettings serviceSettings,
const DeleteAtTimeDetails deleteDetails,
UaHistoryUpdateResults &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Delete the history of item values synchronous at OPC server for the given timestamps

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
deleteDetails  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::addNodes ( ServiceSettings serviceSettings,
const UaAddNodesItems &  nodesToAdd,
UaAddNodesResults &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Adds a list of nodes to the OPC server address space

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
nodesToAdd  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::addReferences ( ServiceSettings serviceSettings,
const UaAddReferencesItems &  referencesToAdd,
UaStatusCodeArray &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Adds a list of references to the OPC server address space

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
referencesToAdd  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::deleteNodes ( ServiceSettings serviceSettings,
const UaDeleteNodesItems &  nodesToDelete,
UaStatusCodeArray &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Removes a list of nodes from the OPC server address space

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
nodesToDelete  [in]
results  [out]
diagnosticInfos  [out]

UaStatus UaClientSdk::UaSession::deleteReferences ( ServiceSettings serviceSettings,
const UaDeleteReferencesItems &  referencesToDelete,
UaStatusCodeArray &  results,
UaDiagnosticInfos &  diagnosticInfos 
)

Removes a list of references from the OPC server address space

Parameters:
serviceSettings  [in,out] The general service settings like timeout. See ServiceSettings for more details
referencesToDelete  [in]
results  [out]
diagnosticInfos  [out]


The documentation for this class was generated from the following files:
  • src/uaclient/uaclientcpp/uasession.h
  • src/uaclient/uaclientcpp/uasession.cpp