SampleSubscription


Defines

#define NUM_SAMPLINGRATES   7
 a define for the number of samplingrates

Functions

IFMETHODIMP() UaProvider_Sample_TimerCallback (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 A callback funtion for the started Timer.
IFMETHODIMP() UaProvider_Sample_TimerStoppedCallback (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 A callback function for the stopped Timer.
void UaProvider_Sample_Subscription_Initialize ()
 Initializes the sample subscription.
void UaProvider_Sample_Subscription_Cleanup ()
 Cleans up the subscription.
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.
void UaProvider_Sample_SampleData ()
 ToDoDoc.

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_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_TimerCallback ( OpcUa_Void *  a_pvCallbackData,
OpcUa_Timer  a_hTimer,
OpcUa_UInt32  a_msecElapsed 
)

A callback funtion for the started Timer.

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_TimerStoppedCallback ( OpcUa_Void *  a_pvCallbackData,
OpcUa_Timer  a_hTimer,
OpcUa_UInt32  a_msecElapsed 
)

A callback function for the stopped Timer.

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.