UA Ansi C Server Professional  1.3.1.232
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
UaProviderServer

Modules

 ServerBrowse
 ServerEvents
 ServerRead
 ServerSubscription
 ServerWrite

Functions

OpcUa_StatusCode UaProvider_Server_ReadAsync (UaServer_ProviderReadContext *a_pReadCtx)
 A Asynchronous Read call.
OpcUa_StatusCode UaProvider_Server_WriteAsync (UaServer_ProviderWriteContext *a_pWriteCtx)
 A async write function.
OpcUa_StatusCode UaProvider_Server_BrowseAsync (UaServer_ProviderBrowseContext *a_pBrowseCtx)
 A Asynchronous Browse call.
OpcUa_StatusCode UaProvider_Server_TranslateAsync (UaServer_ProviderTranslateContext *a_pTranslateCtx)
 A Asynchronous Translate call.
OpcUa_StatusCode UaProvider_Server_RegisterNodesAsync (UaServer_ProviderRegisterNodesContext *a_pRegisterNodesCtx)
 A Asynchronous RegisterNodes call.
OpcUa_StatusCode UaProvider_Server_UnregisterNodesAsync (UaServer_ProviderUnregisterNodesContext *a_pUnregisterNodesCtx)
 A Asynchronous UnregisterNodes call.
OpcUa_StatusCode UaProvider_Server_AddItem (UaServer_MonitoredItem *a_pItem)
 Add an item.
OpcUa_StatusCode UaProvider_Server_RemoveItem (UaServer_MonitoredItem *a_pItem)
 Remove an item.
OpcUa_StatusCode UaProvider_Server_Subscribe (UaServer_ProviderSubscribeContext *a_pCtx)
 A callback function for the subscribe subscription.
void UaProvider_Server_Subscription_Initialize ()
 Initialize the Server Subscription.
void UaProvider_Server_Subscription_Cleanup ()
 Clean up the Server Subscription.
OpcUa_StatusCode UaProvider_Server_Cleanup ()
 Called by the server to clean up.
OpcUa_StatusCode UaProvider_Server_InitServerCapabilities ()
 Initialze ServerCapabilities node and children.
OpcUa_StatusCode UaProvider_Server_InitServerDiagnostics ()
 Initialze ServerDiagnostics node and children.
OpcUa_StatusCode UaProvider_Server_InitServerStatus ()
 Initialze ServerStatus node.
OpcUa_StatusCode UaProvider_Server_CreateAddressSpace ()
 Build complete Serveradressspace.
OpcUa_StatusCode UaProvider_Server_AddNamespace (OpcUa_StringA a_sNamespaceUri, OpcUa_UInt16 *a_piNamespaceIndex)
 This function adds the namespaces to the server.
OpcUa_StatusCode UaProvider_Server_GetNamespaceUris (OpcUa_StringA **a_ppsNamespaceUris)
 Get all possible and actual NamespaceUis.
OpcUa_StatusCode UaProvider_Server_VarUpdate (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 This function refreshes all dynamic Variables.
OpcUa_StatusCode UaProvider_Server_Initialize (UaServer_Provider *a_pProvider, UaServer_pProviderCBInterface *a_pProviderCBInterface, UaServer_pProviderInterface *a_pProviderInterface)
 Initializes the Server.
OpcUa_StatusCode UaProvider_Server_InitializeExtension (UaServer_ServerProviderInterface *pExtension)
 Initializes the Extensions of the Server.

Variables

UaServer_Providerg_pServerProvider
 Pointer to the information of the provider.
UaServer_pProviderCBInterfaceg_pServerProviderCBInterface
 Pointer to the interface of the provider.
UaServer_pProviderInterfaceg_pServerProviderInterface
 Pointer to the interface of the provider.
OpcUa_UInt16 g_UaProviderServer_NamespaceIndex = 0
 The namespace index of the provider.
OpcUa_UInt16 g_UaProviderServer_ApplicationNamespaceIndex = 1
 The namespace index of the application.

Detailed Description

Function Documentation

OpcUa_StatusCode UaProvider_Server_AddItem ( UaServer_MonitoredItem a_pItem)

Add an item.

Parameters
a_pItema pointer to the structure of a monitored item.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_AddNamespace ( OpcUa_StringA  a_sNamespaceUri,
OpcUa_UInt16 *  a_piNamespaceIndex 
)

This function adds the namespaces to the server.

Parameters
a_sNamespaceUrithe actual NamespaceUri.
a_piNamespaceIndexthe actual NamespaceIndex.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_BrowseAsync ( UaServer_ProviderBrowseContext a_pBrowseCtx)

A Asynchronous Browse call.

Parameters
[in]a_pBrowseCtxthe needed BrowseContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_Cleanup ( )

Called by the server to clean up.

Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_CreateAddressSpace ( )

Build complete Serveradressspace.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_GetNamespaceUris ( OpcUa_StringA **  a_ppsNamespaceUris)

Get all possible and actual NamespaceUis.

Parameters
a_ppsNamespaceUristhe actual NamespaceUri.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_Initialize ( UaServer_Provider a_pProvider,
UaServer_pProviderCBInterface a_pProviderCBInterface,
UaServer_pProviderInterface a_pProviderInterface 
)

Initializes the Server.

Parameters
a_pProvidera pointer to the provider structure.
a_pProviderCBInterfacea pointer to the callback interface of the provider interface.
a_pProviderInterfacea pointer to the provider interface
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_InitializeExtension ( UaServer_ServerProviderInterface pExtension)

Initializes the Extensions of the Server.

Parameters
pExtensiona pointer to the extension of the server.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_InitServerCapabilities ( )

Initialze ServerCapabilities node and children.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_InitServerDiagnostics ( )

Initialze ServerDiagnostics node and children.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_InitServerStatus ( )

Initialze ServerStatus node.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_ReadAsync ( UaServer_ProviderReadContext a_pReadCtx)

A Asynchronous Read call.

Parameters
a_pReadCtxthe needed ReadContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_RegisterNodesAsync ( UaServer_ProviderRegisterNodesContext a_pRegisterNodesCtx)

A Asynchronous RegisterNodes call.

Parameters
a_pRegisterNodesCtxthe needed RegisterNodesContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_RemoveItem ( UaServer_MonitoredItem a_pItem)

Remove an item.

Parameters
a_pItema pointer to the structure of a monitored item.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_Subscribe ( UaServer_ProviderSubscribeContext a_pCtx)

A callback function for the subscribe subscription.

Parameters
a_pCtxa pointer to the provider subscription context.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_TranslateAsync ( UaServer_ProviderTranslateContext a_pTranslateCtx)

A Asynchronous Translate call.

Parameters
a_pTranslateCtxthe needed TranslateContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_UnregisterNodesAsync ( UaServer_ProviderUnregisterNodesContext a_pUnregisterNodesCtx)

A Asynchronous UnregisterNodes call.

Parameters
a_pUnregisterNodesCtxthe needed UnregisterNodesContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_VarUpdate ( OpcUa_Void *  a_pvCallbackData,
OpcUa_Timer  a_hTimer,
OpcUa_UInt32  a_msecElapsed 
)

This function refreshes all dynamic Variables.

Parameters
a_pvCallbackDatathe actual callback data.
a_hTimerthe value of the timer.
a_msecElapsedthe elapsed msec for this operation.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_WriteAsync ( UaServer_ProviderWriteContext a_pWriteCtx)

A async write function.

Parameters
a_pWriteCtxa pointer to the writecontext.
Returns
only good if successful.

Variable Documentation

UaServer_Provider* g_pServerProvider

Pointer to the information of the provider.

UaServer_pProviderCBInterface* g_pServerProviderCBInterface

Pointer to the interface of the provider.

UaServer_pProviderInterface* g_pServerProviderInterface

Pointer to the interface of the provider.

OpcUa_UInt16 g_UaProviderServer_ApplicationNamespaceIndex = 1

The namespace index of the application.

OpcUa_UInt16 g_UaProviderServer_NamespaceIndex = 0

The namespace index of the provider.