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:
-
options
Objectthe options
-
clientHandle
Number- the client handle
-
samplingInterval
Number- the sampling Interval
-
filter
ExtensionObject -
discardOldest
Boolean- if discardOldest === true, older items are removed from the queue when
-
queueSize
Number- the size of the queue.
-
monitoredItemId
Numberthe 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:
-
dataValue
DataValuethe whole dataValue
-
skipChangeTest
Booleanindicates 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.