ANSI C Based OPC UA Client/Server SDK  1.8.3.398
UaServerWrite

Functions

OpcUa_StatusCode UaServer_WriteComplete (UaServer_ProviderWriteContext *a_pWriteContext)
 Called by the provider to signal that he finished handling the Write call. More...
 
OpcUa_StatusCode UaServer_ValidateWriteParams (OpcUa_BaseNode *a_pNode, const UaServer_ProviderWriteContext *a_pWriteContext, OpcUa_Int32 a_iNodeIndex)
 Check if all write parameters are valid and match the given node. More...
 
OpcUa_StatusCode UaServer_WriteNodeInternal (OpcUa_BaseNode *a_pNode, UaServer_ProviderWriteContext *a_pWriteContext, OpcUa_Int32 a_iNodeIndex)
 Write the given node. More...
 
OpcUa_StatusCode UaServer_WriteInternal (OpcUa_BaseNode *a_pNode, UaServer_ProviderWriteContext *a_pWriteContext, OpcUa_Int32 a_iNodeIndex)
 Called by a provider to let the SDK handle the write call. More...
 

Detailed Description

Function Documentation

OpcUa_StatusCode UaServer_ValidateWriteParams ( OpcUa_BaseNode *  a_pNode,
const UaServer_ProviderWriteContext a_pWriteContext,
OpcUa_Int32  a_iNodeIndex 
)

Check if all write parameters are valid and match the given node.

Can be used to only validate the write parameters without accessing the OpcUa_BaseNode's value.

Parameters
[in]a_pNodeThe node to write
[in]a_pWriteContextThe associated write context.
[in]a_iNodeIndexThe index of the node to write from the list of the request
Returns
the OPC UA Status code.
OpcUa_StatusCode UaServer_WriteComplete ( UaServer_ProviderWriteContext a_pWriteContext)

Called by the provider to signal that he finished handling the Write call.

Note
This function is thread-safe.
Parameters
a_pWriteContextThe processed WriteContext.
Returns
Always returns OpcUa_Good.
OpcUa_StatusCode UaServer_WriteInternal ( OpcUa_BaseNode *  a_pNode,
UaServer_ProviderWriteContext a_pWriteContext,
OpcUa_Int32  a_iNodeIndex 
)

Called by a provider to let the SDK handle the write call.

Parameters
[in]a_pNodeThe node to write
[in]a_pWriteContextThe associated write context.
[in]a_iNodeIndexThe index of the node to write from the list of the request
Returns
the OPC UA Status code.
OpcUa_StatusCode UaServer_WriteNodeInternal ( OpcUa_BaseNode *  a_pNode,
UaServer_ProviderWriteContext a_pWriteContext,
OpcUa_Int32  a_iNodeIndex 
)

Write the given node.

Use this only after verifying the write parameters using UaServer_ValidateWriteParams.

Parameters
[in]a_pNodeThe node to write
[in]a_pWriteContextThe associated write context.
[in]a_iNodeIndexThe index of the node to write from the list of the request
Returns
the OPC UA Status code.