UaProviderSample


Functions

IFMETHODIMP() UaProvider_Sample_ReadAsync (UaServer_ProviderReadContext *a_pReadCtx)
 Reads asynchronously.
IFMETHODIMP() UaProvider_Sample_WriteAsync (UaServer_ProviderWriteContext *a_pWriteCtx)
 Writes asynchronously.
IFMETHODIMP() UaProvider_Sample_BrowseAsync (UaServer_ProviderBrowseContext *a_pBrowseCtx)
 An asynchronous Browse call.
IFMETHODIMP() UaProvider_Sample_TranslateAsync (UaServer_ProviderTranslateContext *a_pTranslateCtx)
 An asynchronous Translate call.
IFMETHODIMP() UaProvider_Sample_RegisterNodesAsync (UaServer_ProviderRegisterNodesContext *a_pRegisterNodesCtx)
 An asynchronous RegisterNodes call.
IFMETHODIMP() UaProvider_Sample_UnregisterNodesAsync (UaServer_ProviderUnregisterNodesContext *a_pUnregisterNodesCtx)
 An asynchronous UnregisterNodes call.
IFMETHODIMP() UaProvider_Sample_AddItem (UaServer_MonitoredItem *a_pItem)
 Add an item.
IFMETHODIMP() UaProvider_Sample_RemoveItem (UaServer_MonitoredItem *a_pItem)
 Remove an item.
IFMETHODIMP() UaProvider_Sample_Subscribe (UaServer_ProviderSubscribeContext *a_pCtx)
 ToDoDoc.
IFMETHODIMP() UaProvider_Sample_DynamicVarUpdate (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 This function refreshes all dynamic Variables.
IFMETHODIMP() UaProvider_Sample_DynamicVarUpdateStopped (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 This function stops the update of all dynamic Variables.
void UaProvider_Sample_Subscription_Initialize ()
 Initializes the sample subscription.
void UaProvider_Sample_Subscription_Cleanup ()
 Cleans up the subscription.
IFMETHODIMP() UaProvider_Sample_Cleanup (OpcUa_Void)
 Clean up the sample provider.
IFMETHODIMP() UaProvider_Sample_Initialize (UaServer_Provider *a_pProvider, UaServer_pProviderCBInterface *a_pProviderCBInterface, UaServer_pProviderInterface *a_pProviderInterface)
 Initialization Function Called By The Server.

Variables

OpcUa_UInt16 g_UaProviderSample_uNamespaceIndex = 0
 This is the basenode managed by the server.

Function Documentation

IFMETHODIMP() UaProvider_Sample_AddItem ( UaServer_MonitoredItem a_pItem  ) 

Add an item.

Parameters:
a_pItem a pointer to the structure of a monitored item.
Returns:
Error code.

IFMETHODIMP() UaProvider_Sample_BrowseAsync ( UaServer_ProviderBrowseContext a_pBrowseCtx  ) 

An asynchronous Browse call.

Parameters:
a_pBrowseCtx the needed BrowseContext.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_Cleanup ( OpcUa_Void   ) 

Clean up the sample provider.

Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_DynamicVarUpdate ( OpcUa_Void *  a_pvCallbackData,
OpcUa_Timer  a_hTimer,
OpcUa_UInt32  a_msecElapsed 
)

This function refreshes all dynamic Variables.

Parameters:
a_pvCallbackData the actual callback data.
a_hTimer the value of the timer.
a_msecElapsed the elapsed msec for this operation.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_DynamicVarUpdateStopped ( OpcUa_Void *  a_pvCallbackData,
OpcUa_Timer  a_hTimer,
OpcUa_UInt32  a_msecElapsed 
)

This function stops the update of all dynamic Variables.

Parameters:
a_pvCallbackData the actual callback data.
a_hTimer the value of the timer.
a_msecElapsed the elapsed msec for this operation.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_Initialize ( UaServer_Provider a_pProvider,
UaServer_pProviderCBInterface a_pProviderCBInterface,
UaServer_pProviderInterface a_pProviderInterface 
)

Initialization Function Called By The Server.

Parameters:
a_pProvider a pointer to the provider structure.
a_pProviderCBInterface a pointer to the callback interface of the provider interface.
a_pProviderInterface a pointer to the provider interface
Returns:
Error code.

IFMETHODIMP() UaProvider_Sample_ReadAsync ( UaServer_ProviderReadContext a_pReadCtx  ) 

Reads asynchronously.

Parameters:
a_pReadCtx the needed ReadContext.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_RegisterNodesAsync ( UaServer_ProviderRegisterNodesContext a_pRegisterNodesCtx  ) 

An asynchronous RegisterNodes call.

Parameters:
a_pRegisterNodesCtx the needed RegisterNodesContext.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_RemoveItem ( UaServer_MonitoredItem a_pItem  ) 

Remove an item.

Parameters:
a_pItem a pointer to the structure of a monitored item.
Returns:
Error code.

IFMETHODIMP() UaProvider_Sample_Subscribe ( UaServer_ProviderSubscribeContext a_pCtx  ) 

ToDoDoc.

Parameters:
a_pCtx a pointer to the provider subscription context.
Returns:
Error code.

void UaProvider_Sample_Subscription_Cleanup (  ) 

Cleans up the subscription.

void UaProvider_Sample_Subscription_Initialize (  ) 

Initializes the sample subscription.

IFMETHODIMP() UaProvider_Sample_TranslateAsync ( UaServer_ProviderTranslateContext a_pTranslateCtx  ) 

An asynchronous Translate call.

Parameters:
a_pTranslateCtx the needed TranslateContext.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_UnregisterNodesAsync ( UaServer_ProviderUnregisterNodesContext a_pUnregisterNodesCtx  ) 

An asynchronous UnregisterNodes call.

Parameters:
a_pUnregisterNodesCtx the needed UnregisterNodesContext.
Returns:
only good if successful.

IFMETHODIMP() UaProvider_Sample_WriteAsync ( UaServer_ProviderWriteContext a_pWriteCtx  ) 

Writes asynchronously.

Parameters:
a_pWriteCtx a pointer to the writecontext.
Returns:
only good if successful.


Variable Documentation

This is the basenode managed by the server.