UA ANSI C Server Professional  1.4.2.297
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
ServerSubscription

Functions

OpcUa_StatusCode UaProvider_Server_TimerCallback (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 A pointer to the callback function of the timer. More...
 
OpcUa_StatusCode UaProvider_Server_Subscription_Initialize ()
 Initialize the Server Subscription.
 
OpcUa_StatusCode UaProvider_Server_Subscription_Cleanup ()
 Clean up the Server Subscription.
 
OpcUa_StatusCode UaProvider_Server_AddItem (UaServer_MonitoredItem *a_pItem)
 Add an item. More...
 
OpcUa_StatusCode UaProvider_Server_RemoveItem (UaServer_MonitoredItem *a_pItem)
 Remove an item. More...
 
OpcUa_StatusCode UaProvider_Server_Subscribe (UaServer_ProviderSubscribeContext *a_pCtx)
 A callback function for the subscribe subscription. More...
 
void UaProvider_Server_SampleData (OpcUa_Void *a_pvCallbackData)
 ToDoDoc.
 

Variables

static OpcUa_Int g_aiSamplingRates [7] = {50, 100, 250, 500, 1000, 2500, 5000}
 Initial Sampling Rates.
 
static OpcUa_Timer g_hSamplingTimers [7]
 The timers used for the monitored item sampling.
 
static UaServer_Vector g_vecSamplingLists [7]
 List of Monitored Items for each sampling rate.
 

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

A pointer to the callback function of the timer.

Parameters
a_pvCallbackDatathe actual callback data.
a_hTimerthe value of the timer.
a_msecElapsedthe elapsed msec for this operation.
Returns
only good if successful.