UA ANSI C Server Professional  1.4.0.285
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
UaServerMonitoredItemManager

Functions

OpcUa_StatusCode UaServer_ItemChanged (UaServer_MonitoredItem *a_pMonitoredItem)
 Informs the SDK that an item has changed. More...
 
OpcUa_StatusCode UaServer_NewItemValue (UaServer_MonitoredItemData *a_pMonitoredItemData, OpcUa_DataValue *a_pValue)
 Informs about the current value of the monitored item. More...
 
OpcUa_StatusCode UaServer_MonitoredItemData_Lock (UaServer_MonitoredItemData *a_pMonitoredItem)
 Locks the access to the value queue of a monitored item. More...
 
OpcUa_StatusCode UaServer_MonitoredItemData_Unlock (UaServer_MonitoredItemData *a_pMonitoredItem)
 Unlocks the access to the value queue of a monitored item. More...
 

Detailed Description

Function Documentation

OpcUa_StatusCode UaServer_ItemChanged ( UaServer_MonitoredItem a_pMonitoredItem)

Informs the SDK that an item has changed.

Note
This function is not thread-safe, it is recommended to use UaServer_NewItemValue instead. To use this function nevertheless if the check for changes should not be done by the SDK, use UaServer_MonitoredItemData_Lock and UaServer_MonitoredItemData_Unlock to lock the monitored item while accessing the item's queue.
Parameters
a_pMonitoredItemThe item which has changed.
Returns
OpcUa_Good on success.
OpcUa_StatusCode UaServer_MonitoredItemData_Lock ( UaServer_MonitoredItemData a_pMonitoredItem)

Locks the access to the value queue of a monitored item.

This function was introduced in V1.4.0.

Note
This function is thread-safe.
Parameters
a_pMonitoredItemThe item to lock.
Returns
OpcUa_Good on success.
OpcUa_StatusCode UaServer_MonitoredItemData_Unlock ( UaServer_MonitoredItemData a_pMonitoredItem)

Unlocks the access to the value queue of a monitored item.

This function was introduced in V1.4.0.

Note
This function is thread-safe.
Parameters
a_pMonitoredItemThe item to lock.
Returns
OpcUa_Good on success.
OpcUa_StatusCode UaServer_NewItemValue ( UaServer_MonitoredItemData a_pMonitoredItemData,
OpcUa_DataValue *  a_pValue 
)

Informs about the current value of the monitored item.

The SDK does the data change detection and informs the subscription about changed data if necessary.

This function was introduced in V1.3.0.

Note
This function is thread-safe.
Parameters
a_pMonitoredItemDataThe item which has changed.
a_pValueThe current value of the item. The SDK takes the ownership of this argument and will free it if it's not longer needed.
Returns
OpcUa_Good on success.