Functions | |
OpcUa_Void | UaServer_MonitoredItem_Clear (UaServer_MonitoredItem *a_pMonitoredItem) |
Clears the monitored item. | |
OpcUa_StatusCode OPCUA_DLLCALL | UaServer_MonitoredItemManager_TimerStoppedCallback (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed) |
A callback function for the timer. | |
OpcUa_StatusCode | UaServer_MonitoredItemManager_Initialize (OpcUa_Void) |
Initialising Sampling. | |
OpcUa_Void | UaServer_MonitoredItemManager_Cleanup (OpcUa_Void) |
Cleans up everything InitSampling has initialized. | |
IFMETHODIMP() | UaServer_Providers_ItemChanged (UaServer_MonitoredItem *a_pItem) |
Informs if an item has changed. | |
OpcUa_StatusCode | UaServer_MonitoredItemManager_AddMonitoredItem (UaServer_Subscription *a_pSubscription, UaServer_MonitoredItem *a_pMonitoredItem) |
Adds item that should be sampled. | |
UaServer_MonitoredItem * | UaServer_MonitoredItemManager_FindMonitoredItem (OpcUa_UInt32 a_uServerHandle, UaServer_Subscription *a_pSubscription) |
Find a monitored item based on server handle and subscription. | |
OpcUa_StatusCode | UaServer_MonitoredItemManager_RemoveMonitoredItem (OpcUa_UInt32 a_uServerHandle, UaServer_Subscription *a_pSubscription, UaServer_MonitoredItem **a_ppRet) |
Removes the item from the according sampling list. | |
OpcUa_Void | UaServer_MonitoredItemManager_LockList () |
Locks the access to g_SamplingLists. | |
OpcUa_Void | UaServer_MonitoredItemManager_UnlockList () |
Unlocks the access to g_SamplingLists. | |
UaServer_TurboList * | UaServer_MonitoredItemManager_GetList (UaServer_Subscription *a_pSubscription) |
Get the list with all monitored items. | |
Variables | |
OpcUa_Timer | g_hSamplingTimer |
Sampling Timer working with minimum sampling rate. |
OpcUa_Void UaServer_MonitoredItem_Clear | ( | UaServer_MonitoredItem * | a_pMonitoredItem | ) |
Clears the monitored item.
a_pMonitoredItem | a pointer to a monitored item. |
OpcUa_StatusCode UaServer_MonitoredItemManager_AddMonitoredItem | ( | UaServer_Subscription * | a_pSubscription, | |
UaServer_MonitoredItem * | a_pMonitoredItem | |||
) |
Adds item that should be sampled.
This functions sorts the item into the according sampling lists. You should lock the list before using this function with UaServer_Sampling_LockList.
a_pSubscription | a pointer to the subscription structure. | |
a_pMonitoredItem | a pointer to the monitored item. |
OpcUa_Void UaServer_MonitoredItemManager_Cleanup | ( | OpcUa_Void | ) |
Cleans up everything InitSampling has initialized.
What else?
UaServer_MonitoredItem* UaServer_MonitoredItemManager_FindMonitoredItem | ( | OpcUa_UInt32 | a_uServerHandle, | |
UaServer_Subscription * | a_pSubscription | |||
) |
Find a monitored item based on server handle and subscription.
a_uServerHandle | a handle to the server. | |
a_pSubscription | a pointer to the subscription structure. |
UaServer_TurboList* UaServer_MonitoredItemManager_GetList | ( | UaServer_Subscription * | a_pSubscription | ) |
Get the list with all monitored items.
a_pSubscription | a pointer to the subscription structure. |
OpcUa_StatusCode UaServer_MonitoredItemManager_Initialize | ( | OpcUa_Void | ) |
Initialising Sampling.
This functions sets up configured sampling rates and system timer.
OpcUa_StatusCode UaServer_MonitoredItemManager_RemoveMonitoredItem | ( | OpcUa_UInt32 | a_uServerHandle, | |
UaServer_Subscription * | a_pSubscription, | |||
UaServer_MonitoredItem ** | a_ppRet | |||
) |
Removes the item from the according sampling list.
a_uServerHandle | a handle to the server. | |
a_pSubscription | a pointer to the subscription structure. | |
a_ppRet | a pointer to the return of the monitored item which will be removed. |
OpcUa_StatusCode OPCUA_DLLCALL UaServer_MonitoredItemManager_TimerStoppedCallback | ( | OpcUa_Void * | a_pvCallbackData, | |
OpcUa_Timer | a_hTimer, | |||
OpcUa_UInt32 | a_msecElapsed | |||
) |
A callback function for the timer.
a_pvCallbackData | the actual callback data. | |
a_hTimer | the value of the timer. | |
a_msecElapsed | the elapsed msec for this operation. |
a_pvCallbackData | the actual callback data. | |
a_hTimer | the value of the timer. | |
a_msecElapsed | the elapsed msec for this operation. |
IFMETHODIMP() UaServer_Providers_ItemChanged | ( | UaServer_MonitoredItem * | a_pItem | ) |
Informs if an item has changed.
a_pItem | the item which has changed. |