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
(
-
dataValue
-
skipChangeTest
Parameters:
-
dataValue
DataValuethe whole dataValue
-
skipChangeTest
BooleanNote: recordValue can only be called within timer event
terminate
This will stop the internal sampling timer.
()
Terminate the MonitoredItem.