Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

a server side monitored item

  • Once created, the MonitoredItem will raised an "samplingEvent" event every "samplingInterval" millisecond until {{#crossLink "MonitoredItem/terminate:method"}}{{/crossLink}} is called.

  • It is up to the event receiver to call {{#crossLink "MonitoredItem/recordValue:method"}}{{/crossLink}}.

Hierarchy

  • EventEmitter
    • MonitoredItem

Index

Constructors

constructor

Properties

Optional $subscription

$subscription: ISubscription

Optional _samplingId

_samplingId: string | Timer

clientHandle

clientHandle: number

discardOldest

discardOldest: boolean

filter

itemToMonitor

itemToMonitor: any

monitoredItemId

monitoredItemId: number

monitoringMode

monitoringMode: MonitoringMode

Optional oldDataValue

oldDataValue: DataValue

overflow

overflow: boolean

queueSize

queueSize: number

samplingFunc

samplingFunc: (value: DataValue, callback: (err: Error, dataValue?: DataValue) => void) => void

Type declaration

    • Parameters

      Returns void

samplingInterval

samplingInterval: number

timestampsToReturn

timestampsToReturn: TimestampsToReturn

Static defaultSamplingInterval

defaultSamplingInterval: number

Static maximumSamplingInterval

maximumSamplingInterval: number

Static minimumSamplingInterval

minimumSamplingInterval: number

Static registry

registry: ObjectRegistry

Accessors

hasMonitoredItemNotifications

  • get hasMonitoredItemNotifications(): boolean
  • Returns boolean

isSampling

  • get isSampling(): boolean
  • Returns boolean

node

  • Returns BaseNode

  • Parameters

    Returns void

Methods

addLinkItem

  • addLinkItem(linkedMonitoredItemId: number): StatusCode
  • Parameters

    • linkedMonitoredItemId: number

    Returns StatusCode

dispose

  • dispose(): void
  • Returns void

extractMonitoredItemNotifications

  • extractMonitoredItemNotifications(bForce?: boolean): QueueItem[]
  • Parameters

    • Optional bForce: boolean

    Returns QueueItem[]

hasLinkItem

  • hasLinkItem(linkedMonitoredItemId: number): boolean
  • Parameters

    • linkedMonitoredItemId: number

    Returns boolean

modify

removeLinkItem

  • removeLinkItem(linkedMonitoredItemId: number): StatusCode
  • Parameters

    • linkedMonitoredItemId: number

    Returns StatusCode

resendInitialValues

  • resendInitialValues(): Promise<void>
  • Returns Promise<void>

setMonitoringMode

  • Parameters

    Returns void

setNode

  • Parameters

    Returns void

terminate

  • terminate(): void
  • Terminate the MonitoredItem.

    method

    terminate

    This will stop the internal sampling timer.

    Returns void

toString

  • toString(): string
  • Returns string

Generated using TypeDoc