MonitoredItem Class
Module: opcua.server
a server side monitored item
-
Once created, the MonitoredItem will raised an "samplingEvent" event every "samplingInterval" millisecond until MonitoredItem/terminate:method is called.
-
It is up to the event receiver to call recordValue.
Constructor
MonitoredItem
(
-
options
Parameters:
-
optionsObjectthe options
-
clientHandleNumber- the client handle
-
samplingIntervalNumber- the sampling Interval
-
filterExtensionObject -
discardOldestBoolean- if discardOldest === true, older items are removed from the queue when
-
queueSizeNumber- the size of the queue.
-
monitoredItemIdNumberthe monitoredItem Id assigned by the server to this monitoredItem.
-
itemToMonitor -
monitoringMode -
timestampsToReturn
-
Item Index
Methods
Methods
_on_sampling_timer
()
private
extractMonitoredItemNotifications
()
Array.<>
Returns:
Array.<>:
recordValue
(
private
-
dataValue -
skipChangeTest
Parameters:
-
dataValueDataValuethe whole dataValue
-
skipChangeTestBooleanindicates whether recordValue should not check that dataValue is really different from previous one, ( by checking timestamps but also variant value)
terminate
This will stop the internal sampling timer.
()
Terminate the MonitoredItem.
The NodeOPCUA API