Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Index

Enumerations

Classes

Interfaces

Type aliases

Events

Variables

Functions

Type aliases

AccessLevelFlagString

AccessLevelFlagString: "CurrentRead" | "CurrentWrite" | "HistoryRead" | "HistoryWrite" | "StatusWrite" | "TimestampWrite"

AccessLevelString

AccessLevelString: string

AddCommentEventHandler

AddCommentEventHandler: (eventId: Buffer | null, comment: LocalizedText, branch: ConditionSnapshot) => void

Type declaration

AddStateVariableOptionals

AddStateVariableOptionals: "EffectiveDisplayName" | "Name" | "Number" | string

AddTwoStateVariableOptionals

AddTwoStateVariableOptionals: AddStateVariableOptionals | "TransitionTime" | "EffectiveTransitionTime" | "TrueState" | "FalseState"

BindVariableOptions

BrowseDescriptionLike

BrowseDescriptionLike: string | BrowseDescriptionOptions

Byte

Byte: UInt8

ByteString

ByteString: Buffer

CallMethodRequestLike

CallMethodRequestLike: CallMethodRequestOptions

Callback

Callback<T>: (err: Error | null, result?: T) => void

Type parameters

  • T

Type declaration

    • (err: Error | null, result?: T): void
    • Parameters

      • err: Error | null
      • Optional result: T

      Returns void

Callback2

Callback2<T>: (err: Error | null, result?: T) => void

Type parameters

  • T

Type declaration

    • (err: Error | null, result?: T): void
    • Parameters

      • err: Error | null
      • Optional result: T

      Returns void

CallbackT

CallbackT<T>: (err: Error | null, result?: T) => void

Type parameters

  • T

Type declaration

    • (err: Error | null, result?: T): void
    • Parameters

      • err: Error | null
      • Optional result: T

      Returns void

CallbackWithData

CallbackWithData: CallbackT<Buffer>

CharArray

CharArray: string

ClientHandle

ClientHandle: number

ClosingReason

ClosingReason: "Timeout" | "Terminated" | "CloseSession" | "Forcing"

ConstructorFunc

ConstructorFunc: (...args: any[]) => BaseUAObject

Type declaration

    • (...args: any[]): BaseUAObject
    • Parameters

      • Rest ...args: any[]

      Returns BaseUAObject

ContinuationPoint

ContinuationPoint: ByteString

Counter

Counter: number

CreateMonitoredItemHook

CreateMonitoredItemHook: (subscription: Subscription, monitoredItem: MonitoredItemBase) => Promise<StatusCode>

Type declaration

CreateMonitoredItemsRequestLike

CreateMonitoredItemsRequestLike: CreateMonitoredItemsRequestOptions

CreateNodeOptions

CreateNodeOptions: any

CreateSecureChannelCallbackFunc

CreateSecureChannelCallbackFunc: (err: Error | null, secureChannel?: ClientSecureChannelLayer) => void

Type declaration

CreateSubscriptionRequestLike

CreateSubscriptionRequestLike: CreateSubscriptionRequestOptions

DataValueLike

DataValueLike: DataValueOptions | DataValue

DateTime

DateTime: Date | DateWithPicoseconds | null

DeleteMonitoredItemHook

DeleteMonitoredItemHook: (subscription: Subscription, monitoredItem: MonitoredItemBase) => Promise<StatusCode>

Type declaration

DeleteMonitoredItemsRequestLike

DeleteMonitoredItemsRequestLike: DeleteMonitoredItemsRequestOptions

DeleteSubscriptionsRequestLike

DeleteSubscriptionsRequestLike: DeleteSubscriptionsRequestOptions

Double

Double: number

Duration

Duration: number

ErrorCallback

ErrorCallback: (err?: Error) => void

Type declaration

    • (err?: Error): void
    • Parameters

      • Optional err: Error

      Returns void

EventTypeLike

EventTypeLike: string | NodeId | UAEventType

FindEndpointCallback

FindEndpointCallback: (err: Error | null, result?: FindEndpointResult) => void

Type declaration

FindServersOnNetworkRequestLike

FindServersOnNetworkRequestLike: FindServersOnNetworkRequestOptions

FindServersRequestLike

FindServersRequestLike: FindServersRequestOptions

Float

Float: number

GetFunc

GetFunc: (this: UAVariable) => Variant

Type declaration

Guid

Guid: string

HistoryReadFunc

HistoryReadFunc: (context: ISessionContext, historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationData: ContinuationData, callback: CallbackT<HistoryReadResult>) => void

Type declaration

IHistoricalDataNodeOptions

IHistoricalDataNodeOptions: IVariableHistorianOptions | { historian: IVariableHistorian }

Int16

Int16: number

Int32

Int32: number

Int64

Int64: UInt32[]

Int8

Int8: number

LocaleId

LocaleId: UAString

LocalizedTextLike

LocalizedTextLike: LocalizedTextOptions | string

MethodFunctor

MethodFunctorA

MethodFunctorA: (this: UAMethod, inputArguments: Variant[], context: ISessionContext) => Promise<CallMethodResultOptions>

Type declaration

MethodFunctorC

MethodFunctorC: (this: UAMethod, inputArguments: Variant[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) => void

Type declaration

MethodId

MethodId: NodeIdLike

ModellingRuleType

ModellingRuleType: "Mandatory" | "Optional" | "MandatoryPlaceholder" | "OptionalPlaceholder" | "ExposesItsArray" | null

ModifyMonitoredItemsRequestLike

ModifyMonitoredItemsRequestLike: ModifyMonitoredItemsRequestOptions

ModifySubscriptionRequestLike

ModifySubscriptionRequestLike: ModifySubscriptionRequestOptions

NodeIdLike

NodeIdLike: string | NodeId | number

NodeIdLikeOrWithNodeId

NodeIdLikeOrWithNodeId: NodeIdLike | { nodeId: NodeId }

Notification

NumberType

NumberType: number | number[]

ObjectMap

ObjectMap: {}

Type declaration

  • [key: string]: Pojo

Pojo

Pojo: Record<string, unknown>

PseudoVariant

PseudoVariantNumber

QualifiedNameLike

QualifiedNameLike: QualifiedNameOptions | string

QueryFirstRequestLike

QueryFirstRequestLike: QueryFirstRequestOptions

QueueItem

Request

Response

ResponseCallback

ResponseCallback<T>: (err: Error | null, response?: T) => void

Type parameters

  • T

Type declaration

    • (err: Error | null, response?: T): void
    • Parameters

      • err: Error | null
      • Optional response: T

      Returns void

SByte

SByte: Int8

SecurityHeader

SetFunc

SetFunc: VariableSetter | null

SetMonitoringModeRequestLike

SetMonitoringModeRequestLike: SetMonitoringModeRequestOptions

StatusCodeCallback

StatusCodeCallback: CallbackT<StatusCode>

StringGetter

StringGetter: () => string

Type declaration

    • (): string
    • Returns string

SubscriptionId

SubscriptionId: number

TimestampGetFunc

TimestampSetFunc

TransferSubscriptionsRequestLike

TransferSubscriptionsRequestLike: TransferSubscriptionsRequestOptions

TransitionSelector

TransitionSelector: (transitions: UATransitionEx[], fromState: UAState, toState: UAState) => UATransitionEx | null

Type declaration

UABoolean

UABoolean: boolean

UAClonable

UAClonable: UAObject | UAVariable | UAMethod

UAString

UAString: string | null

UInt16

UInt16: number

UInt32

UInt32: number

UInt64

UInt64: UInt32[]

UInt8

UInt8: number

UserIdentityInfo

UserManagerOptions

UserManagerOptions: IUserManagerEx | UAUserManagerBase

UtcTime

UtcTime: DateTime

ValidUserAsyncFunc

ValidUserAsyncFunc: (this: ServerSession, username: string, password: string, callback: (err: Error | null, isAuthorized?: boolean) => void) => void

Type declaration

    • (this: ServerSession, username: string, password: string, callback: (err: Error | null, isAuthorized?: boolean) => void): void
    • Parameters

      • this: ServerSession
      • username: string
      • password: string
      • callback: (err: Error | null, isAuthorized?: boolean) => void
          • (err: Error | null, isAuthorized?: boolean): void
          • Parameters

            • err: Error | null
            • Optional isAuthorized: boolean

            Returns void

      Returns void

ValidUserFunc

ValidUserFunc: (this: ServerSession, username: string, password: string) => boolean

Type declaration

    • (this: ServerSession, username: string, password: string): boolean
    • Parameters

      Returns boolean

VariableDataValueGetterCallback

VariableDataValueGetterCallback: (this: UAVariable, callback: CallbackT<DataValue>) => void

Type declaration

VariableDataValueGetterPromise

VariableDataValueGetterPromise: (this: UAVariable) => Promise<DataValue>

Type declaration

VariableDataValueGetterSync

VariableDataValueGetterSync: (this: UAVariable) => DataValue

Type declaration

VariableDataValueSetterWithCallback

VariableDataValueSetterWithCallback: (this: UAVariable, dataValue: DataValue, callback: CallbackT<StatusCode>) => void

Type declaration

VariableDataValueSetterWithPromise

VariableDataValueSetterWithPromise: (this: UAVariable, dataValue: DataValue) => Promise<StatusCode>

Type declaration

VariableSetter

VariableSetterVariation1

VariableSetterVariation1: (this: UAVariable, value: Variant) => StatusCode

Type declaration

VariableSetterVariation2

VariableSetterVariation2: (this: UAVariable, value: Variant, callback: CallbackT<StatusCode>) => void

Type declaration

VariantByteString

VariantByteString: VariantT<Buffer, ByteString>

VariantDouble

VariantDouble: VariantT<number, Double>

VariantLike

VariantLike: VariantOptions

VerifyBufferFunc

VerifyBufferFunc: (chunk: Buffer) => boolean

Type declaration

    • (chunk: Buffer): boolean
    • Parameters

      • chunk: Buffer

      Returns boolean

WellKnownRolesSemiColumnSeparated

WellKnownRolesSemiColumnSeparated: string

OPC Unified Architecture, Part 3 13 Release 1.04 4.8.2 Well Known Roles All Servers should support the well-known Roles which are defined in Table 2. The NodeIds for the well-known Roles are defined in Part 6. Table 2 – Well-Known Roles BrowseName Suggested Permissions

Anonymous The Role has very limited access for use when a Session has anonymous credentials. AuthenticatedUser The Role has limited access for use when a Session has valid non-anonymous credentials but has not been explicitly granted access to a Role. Observer The Role is allowed to browse, read live data, read historical data/events or subscribe to data/events. Operator The Role is allowed to browse, read live data, read historical data/events or subscribe to data/events. In addition, the Session is allowed to write some live data and call some Methods. Engineer The Role is allowed to browse, read/write configuration data, read historical data/events, call Methods or subscribe to data/events. Supervisor The Role is allowed to browse, read live data, read historical data/events, call Methods or subscribe to data/events. ConfigureAdmin The Role is allowed to change the non-security related config SecurityAdmin The Role is allowed to change security related settings.

WithSessionFunc

WithSessionFunc: (session: ClientSession) => Promise<void>

Type declaration

WithSessionFuncP

WithSessionFuncP<T>: (session: ClientSession) => Promise<T>

Type parameters

  • T

Type declaration

WithSubscriptionFunc

WithSubscriptionFunc: (session: ClientSession, subscription: ClientSubscription) => Promise<void>

Type declaration

WithSubscriptionFuncP

WithSubscriptionFuncP<T>: (session: ClientSession, subscription: ClientSubscription) => Promise<T>

Type parameters

  • T

Type declaration

XmlLoaderAsyncFunc

XmlLoaderAsyncFunc: (nodeset2xmlUri: string) => Promise<string>

Type declaration

    • (nodeset2xmlUri: string): Promise<string>
    • Parameters

      • nodeset2xmlUri: string

      Returns Promise<string>

XmlLoaderFunc

XmlLoaderFunc: (nodeset2xmlUri: string, callback: CallbackT<string>) => void

Type declaration

    • (nodeset2xmlUri: string, callback: CallbackT<string>): void
    • Parameters

      • nodeset2xmlUri: string
      • callback: CallbackT<string>

      Returns void

Events

RegisterServerManager

RegisterServerManager:

RegisterServerManager is responsible to Register an opcua server on a LDS or LDS-ME server This class takes in charge :

  • the initial registration of a server
  • the regular registration renewal (every 8 minutes or so ...)
  • dealing with cases where LDS is not up and running when server starts. ( in this case the connection will be continuously attempted using the infinite back-off strategy
  • the un-registration of the server ( during shutdown for instance)

Events:

Emitted when the server is trying to registered the LDS but when the connection to the lds has failed serverRegistrationPending is sent when the backoff signal of the connection process is rained

param
param
param

constructor

discoveryServerEndpointUrl

discoveryServerEndpointUrl: string

timeout

timeout: number

_emitEvent

  • _emitEvent(eventName: string): void
  • Parameters

    • eventName: string

    Returns void

_setState

_trigger_next

  • _trigger_next(): void
  • Returns void

dispose

  • dispose(): void
  • Returns void

start

  • Parameters

    Returns void

stop

  • Parameters

    Returns void

Variables

Const NamespaceOptions

NamespaceOptions: { nodeIdNameSeparator: string }

Type declaration

  • nodeIdNameSeparator: string

NamespacePrivate

NamespacePrivate: (options: any) => NamespacePrivate

Type declaration

Const RESPONSE_DIAGNOSTICS_MASK_ALL

RESPONSE_DIAGNOSTICS_MASK_ALL: 1023 = 1023

Const _enumerationBrowseDirection

_enumerationBrowseDirection: Enum

Const _enumerationDataType

_enumerationDataType: Enum

Const _enumerationMessageSecurityMode

_enumerationMessageSecurityMode: Enum

Const _enumerationResultMask

_enumerationResultMask: Enum

Const _enumerationTimestampsToReturn

_enumerationTimestampsToReturn: Enum

Const allPermissions

allPermissions: number

Const attributeNameById

attributeNameById: {}

Type declaration

  • [key: string]: string | number

Const crypto_utils

crypto_utils: typeof crypto_util1

Const defaultCloneExtraInfo

defaultCloneExtraInfo: CloneExtraInfo

Const defaultCloneFilter

defaultCloneFilter: CloneFilter

Const emptyGuid

emptyGuid: "00000000-0000-0000-0000-000000000000" = "00000000-0000-0000-0000-000000000000"

Const extraStatusCodeBits

extraStatusCodeBits: {}

StatusCode Special bits

Type declaration

  • [key: string]: number

Const minOPCUADate

minOPCUADate: Date

Const nodesets

nodesets: { adi: string; autoId: string; cnc: string; commercialKitchenEquipment: string; di: string; eumabois: string; gds: string; glass: string; ia: string; machineTool: string; machineVision: string; machinery: string; packML: string; robotics: string; standard: string; woodWorking: string }

Type declaration

  • adi: string
  • autoId: string
  • cnc: string
  • commercialKitchenEquipment: string
  • di: string
  • eumabois: string
  • gds: string
  • glass: string
  • ia: string
  • machineTool: string
  • machineVision: string
  • machinery: string
  • packML: string
  • robotics: string
  • standard: string
  • woodWorking: string

Const offsetFactor1601

offsetFactor1601: number[]

Const periodicClockAdjustment

periodicClockAdjustment: { adjustmentCount: number; interval: number; timerInstallationCount: number }

Type declaration

  • adjustmentCount: number
  • interval: number
  • timerInstallationCount: number

Const requestHandleNotSetValue

requestHandleNotSetValue: 3735928559 = 3735928559

Const schemaBrowseDirection

schemaBrowseDirection: { enumValues: typeof BrowseDirection; name: string }

Type declaration

Const schemaDiagnosticInfo

schemaDiagnosticInfo: StructuredTypeSchema

Const schemaEnumNodeClass

schemaEnumNodeClass: { documentation: string; enumValues: typeof NodeClass; name: string }

Type declaration

  • documentation: string
  • enumValues: typeof NodeClass
  • name: string

Const schemaQualifiedName

schemaQualifiedName: StructuredTypeSchema

Const schemaResultMask

schemaResultMask: { enumValues: typeof ResultMask; name: string }

Type declaration

Const schemaSessionAuthenticationToken

schemaSessionAuthenticationToken: { name: string; subType: string }

Type declaration

  • name: string
  • subType: string

Const schemaTimestampsToReturn

schemaTimestampsToReturn: { enumValues: typeof TimestampsToReturn; name: string }

Type declaration

Const serverCapabilities

serverCapabilities: string[]

Const standardUnits

standardUnits: StandardUnits

Const utils

utils: typeof utils1

Functions

__checkWhereClause

_accessLevelFlagToString

  • _accessLevelFlagToString(accessLevelFlag: number): string[]
  • Parameters

    • accessLevelFlag: number

    Returns string[]

_announceServerOnMulticastSubnet

  • _announceServerOnMulticastSubnet(multicastDNS: bonjour.Bonjour, options: Announcement): Promise<bonjour.Service>
  • Parameters

    Returns Promise<bonjour.Service>

_findGoodDataValueAfter

  • _findGoodDataValueAfter(dataValues: DataValue[], index: number, bTreatUncertainAsBad: boolean): DataValueWithIndex
  • Parameters

    • dataValues: DataValue[]
    • index: number
    • bTreatUncertainAsBad: boolean

    Returns DataValueWithIndex

_findGoodDataValueBefore

  • _findGoodDataValueBefore(dataValues: DataValue[], index: number, bTreatUncertainAsBad: boolean): DataValueWithIndex
  • Parameters

    • dataValues: DataValue[]
    • index: number
    • bTreatUncertainAsBad: boolean

    Returns DataValueWithIndex

accessLevelExFlagToString

  • Parameters

    Returns string

accessLevelFlagToString

  • Parameters

    Returns string

accessRestrictionsFlagToString

  • Parameters

    Returns string

acknowledgeCondition

  • Parameters

    Returns Promise<StatusCode>

acknwoledgeAllConditions

  • acknwoledgeAllConditions(session: ClientSession, message: string): Promise<void>
  • Parameters

    Returns Promise<void>

acquireBonjour

  • acquireBonjour(): bonjour.Bonjour
  • Returns bonjour.Bonjour

addAggregateSupport

  • Parameters

    Returns void

addElement

adjustBrowseDirection

adjustNamespaceArray

adjustProcessingOptions

adjustVariant

  • Parameters

    Returns Variant

apply_timestamps

apply_timestamps_no_copy

assert

  • assert(cond: boolean | unknown | null | undefined | func, message?: string): void
  • Parameters

    • cond: boolean | unknown | null | undefined | func
    • Optional message: string

    Returns void

asymmetricVerifyChunk

  • asymmetricVerifyChunk(self: CryptoFactory, chunk: Buffer, certificate: Certificate): boolean
  • Parameters

    Returns boolean

binaryStoreSize_ArgumentList

  • binaryStoreSize_ArgumentList(description: ArgumentDef[], args: any[]): number
  • Parameters

    Returns number

bindExtObjArrayNode

bn_dateToHundredNanoSecondFrom1601

  • bn_dateToHundredNanoSecondFrom1601(date: Date, picoseconds: number): any
  • Parameters

    • date: Date
    • picoseconds: number

      : represent the portion of the date that cannot be managed by the javascript Date object

    Returns any

bn_dateToHundredNanoSecondFrom1601Excess

  • bn_dateToHundredNanoSecondFrom1601Excess(date: Date, picoseconds: number): number
  • Parameters

    • date: Date
    • picoseconds: number

    Returns number

bn_hundredNanoSecondFrom1601ToDate

  • bn_hundredNanoSecondFrom1601ToDate(high: number, low: number, picoseconds?: number, _value?: Date | null): DateWithPicoseconds
  • Parameters

    • high: number
    • low: number
    • Optional picoseconds: number
    • Optional _value: Date | null

    Returns DateWithPicoseconds

browseAll

  • Parameters

    Returns Promise<BrowseResult>

  • Parameters

    Returns Promise<BrowseResult[]>

buffer_ellipsis

  • buffer_ellipsis(buffer: Buffer, start?: number, end?: number): string
  • Parameters

    • buffer: Buffer
    • Optional start: number
    • Optional end: number

    Returns string

buildVariantArray

  • buildVariantArray(dataType: DataType, nbElements: number, defaultValue: unknown): Float32Array | Float64Array | Uint32Array | Int32Array | Uint16Array | Int16Array | Uint8Array | Int8Array | unknown[]
  • Parameters

    • dataType: DataType
    • nbElements: number
    • defaultValue: unknown

    Returns Float32Array | Float64Array | Uint32Array | Int32Array | Uint16Array | Int16Array | Uint8Array | Int8Array | unknown[]

build_address_space_for_conformance_testing

  • build_address_space_for_conformance_testing(addressSpace: AddressSpace, options: any): void
  • Parameters

    Returns void

build_retrieveInputArgumentsDefinition

calculateIntervalMaxValue

calculateIntervalMinValue

callConditionRefresh

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns void

callMethodHelper

capitalizeFirstLetter

  • capitalizeFirstLetter(str: string): string
  • Parameters

    • str: string

    Returns string

checkSelectClause

checkSelectClauses

  • method

    checkSelectClauses

    Parameters

    Returns StatusCode[]

    an array of StatusCode

checkWhereClause

check_flag

  • check_flag(value: number, mask: number | { value: number }): boolean
  • check if a set of bits are set in the values

    method

    check_flag

    Parameters

    • value: number
    • mask: number | { value: number }

    Returns boolean

chooseSecurityHeader

  • Parameters

    • msgType: string

    Returns SecurityHeader

Const coerceAccessLevelFlag

  • Parameters

    • str: string | number | null

    Returns AccessLevelFlag

coerceBoolean

  • coerceBoolean(value: string): boolean
  • Parameters

    • value: string

    Returns boolean

coerceByte

  • coerceByte(value: number | string | null): UInt8
  • Parameters

    • value: number | string | null

    Returns UInt8

coerceByteString

  • coerceByteString(value: number[] | string | ByteString): ByteString
  • Parameters

    • value: number[] | string | ByteString

    Returns ByteString

coerceClock

  • Parameters

    Returns PreciseClock

coerceConnectionStrategy

coerceDateTime

  • coerceDateTime(value: any): Date
  • Parameters

    • value: any

    Returns Date

coerceDouble

  • coerceDouble(value: number | null | string): Double
  • Parameters

    • value: number | null | string

    Returns Double

coerceExpandedNodeId

  • Parameters

    • value: unknown

    Returns ExpandedNodeId

coerceFloat

  • coerceFloat(value: number | null | string): Float
  • Parameters

    • value: number | null | string

    Returns Float

coerceInt16

  • coerceInt16(value: number | string | null): Int16
  • Parameters

    • value: number | string | null

    Returns Int16

coerceInt32

  • Parameters

    Returns Int32

Const coerceInt64

  • Parameters

    Returns UInt64

coerceInt8

  • coerceInt8(value: number | string | null): Int8
  • Parameters

    • value: number | string | null

    Returns Int8

coerceLocalizedText

coerceMessageSecurityMode

  • Parameters

    • Optional value: number | string

    Returns MessageSecurityMode

coerceNodeId

  • coerceNodeId(value: unknown, namespace?: number): NodeId
  • Convert a value into a nodeId:

    method

    coerceNodeId

    static
    description:
    • if nodeId is a string of form : "i=1234" => nodeId({value=1234, identifierType: NodeIdType.NUMERIC})
    • if nodeId is a string of form : "s=foo" => nodeId({value="foo", identifierType: NodeIdType.STRING})
    • if nodeId is a NodeId : coerceNodeId returns value

    Parameters

    • value: unknown
    • Optional namespace: number

    Returns NodeId

coerceQualifiedName

  • Parameters

    • value: null

    Returns null

  • Parameters

    Returns QualifiedName

  • Parameters

    • value: string

    Returns QualifiedName

coerceSByte

  • coerceSByte(value: number | string | null): Int8
  • Parameters

    • value: number | string | null

    Returns Int8

coerceSecurityPolicy

  • Parameters

    Returns SecurityPolicy

coerceStatusCode

  • Parameters

    • statusCode: StatusCode | number | string | { value: number }

    Returns StatusCode

coerceTimestampsToReturn

  • Parameters

    • value: number | null | undefined

    Returns TimestampsToReturn

coerceUInt16

  • coerceUInt16(value: number | string | null): UInt16
  • Parameters

    • value: number | string | null

    Returns UInt16

coerceUInt32

  • coerceUInt32(value: null | string | number | EnumItemLike): UInt32
  • Parameters

    • value: null | string | number | EnumItemLike

    Returns UInt32

coerceUInt64

  • Parameters

    Returns UInt64

coerceUInt8

  • coerceUInt8(value: number | string | null): UInt8
  • Parameters

    • value: number | string | null

    Returns UInt8

coerceVariantType

  • coerceVariantType(dataType: DataType, value: undefined | any): any
  • Parameters

    • dataType: DataType
    • value: undefined | any

    Returns any

compare_buffers

  • compare_buffers(buf1: Buffer, buf2: Buffer, max_length?: number): void
  • Parameters

    • buf1: Buffer
    • buf2: Buffer
    • Optional max_length: number

    Returns void

computeDerivedKeys

  • Parameters

    • cryptoFactory: CryptoFactory
    • serverNonce: Nonce
    • clientNonce: Nonce

    Returns DerivedKeys1

computeSignature

  • computeSignature(senderCertificate: Buffer | null, senderNonce: Nonce | null, receiverPrivateKey: PrivateKeyPEM | null, securityPolicy: SecurityPolicy): SignatureData | undefined
  • Parameters

    • senderCertificate: Buffer | null
    • senderNonce: Nonce | null
    • receiverPrivateKey: PrivateKeyPEM | null
    • securityPolicy: SecurityPolicy

    Returns SignatureData | undefined

confirmAllConditions

  • confirmAllConditions(session: ClientSession, message: string): Promise<void>
  • Parameters

    Returns Promise<void>

confirmCondition

  • Parameters

    Returns Promise<StatusCode>

constructBrowsePathFromQualifiedName

  • method

    constructBrowsePathFromQualifiedName

    Parameters

    Returns BrowsePath

constructEventFilter

  • helper to construct event filters: construct a simple event filter

    example
    constructEventFilter(["SourceName","Message","ReceiveTime"]);
    
    constructEventFilter(["SourceName",{namespaceIndex:2 , "MyData"}]);
    constructEventFilter(["SourceName","2:MyData" ]);
    
    constructEventFilter(["SourceName" ,["EnabledState","EffectiveDisplayName"] ]);
    constructEventFilter(["SourceName" ,"EnabledState.EffectiveDisplayName" ]);
    

    Parameters

    • arrayOfNames: string[] | string
    • Optional conditionTypes: NodeId[] | NodeId

    Returns EventFilter

constructInt64

  • Parameters

    Returns Int64

convertAccessLevelFlagToByte

  • Parameters

    Returns number

convertDataTypeDefinitionToStructureTypeSchema

  • convertDataTypeDefinitionToStructureTypeSchema(session: IBasicSession, dataTypeNodeId: NodeId, name: string, definition: DataTypeDefinition, dataTypeFactory: DataTypeFactory, cache: {}): Promise<StructuredTypeSchema>
  • Parameters

    Returns Promise<StructuredTypeSchema>

createExtObjArrayNode

decodeAccessLevelExFlag

decodeAccessLevelFlag

decodeArray

  • decode an array from a BinaryStream

    Parameters

    • stream: BinaryStream

      the stream.

    • decodeElementFunc: (stream: BinaryStream) => any

      The function to decode a single array element. This function returns the element decoded from the stream

    Returns any[] | null

    an array of elements or nul

decodeBoolean

  • decodeBoolean(stream: BinaryStream, _value?: boolean): boolean
  • Parameters

    Returns boolean

decodeBrowseDirection

Const decodeByte

  • Parameters

    Returns UInt8

decodeByteString

  • decodeByteString(stream: BinaryStream, _value?: ByteString): ByteString
  • Parameters

    Returns ByteString

decodeDataValue

decodeDateTime

decodeDiagnosticInfo

decodeDouble

  • Parameters

    Returns Double

decodeExpandedNodeId

decodeFloat

  • Parameters

    Returns Float

decodeGuid

  • Parameters

    Returns Guid

Const decodeHighAccuracyDateTime

decodeInt16

  • Parameters

    Returns Int16

decodeInt32

  • Parameters

    Returns Int32

Const decodeInt64

  • Parameters

    Returns UInt64

decodeInt8

  • Parameters

    Returns Int8

decodeLocaleId

  • Parameters

    Returns LocaleId

decodeLocalizedText

decodeMessage

  • Parameters

    Returns BaseUAObject

decodeNodeId

  • Parameters

    Returns NodeId

decodeQualifiedName

Const decodeSByte

  • Parameters

    Returns Int8

decodeStatusCode

decodeString

  • decodeString(stream: BinaryStream, value?: string | null): string | null
  • Parameters

    Returns string | null

decodeTimestampsToReturn

Const decodeUABoolean

  • decodeUABoolean(stream: BinaryStream, _value?: boolean): boolean
  • Parameters

    Returns boolean

Const decodeUAString

  • decodeUAString(stream: BinaryStream, value?: string | null): string | null
  • Parameters

    Returns string | null

decodeUInt16

  • Parameters

    Returns UInt16

decodeUInt32

  • Parameters

    Returns UInt32

decodeUInt64

  • Parameters

    Returns UInt64

decodeUInt8

  • Parameters

    Returns UInt8

decode_ArgumentList

  • Parameters

    Returns any[]

dumpBrowseDescription

dumpEvent

  • Parameters

    Returns Promise<void>

dumpReferenceDescription

  • Parameters

    Returns void

dumpReferenceDescriptions

  • Parameters

    Returns void

dumpReferences

  • method

    dumpReferences

    static

    Parameters

    Returns void

dumpToBSD

dumpXml

  • dumpXml(node: BaseNode, options: any): string

encodeAccessLevelExFlag

  • encodeAccessLevelExFlag(value: AccessLevelExFlag, stream: OutputBinaryStream): void
  • Parameters

    Returns void

encodeAccessLevelFlag

  • encodeAccessLevelFlag(value: AccessLevelFlag, stream: OutputBinaryStream): void
  • Parameters

    Returns void

encodeArray

  • encodeArray(arr: any[] | null, stream: OutputBinaryStream, encodeElementFunc: (value: any, stream: OutputBinaryStream) => void): void
  • method

    encodeArray

    Parameters

    • arr: any[] | null

      the array to encode.

    • stream: OutputBinaryStream

      the stream.

    • encodeElementFunc: (value: any, stream: OutputBinaryStream) => void

      The function to encode a single array element.

        • (value: any, stream: OutputBinaryStream): void
        • Parameters

          • value: any
          • stream: OutputBinaryStream

          Returns void

    Returns void

encodeBoolean

  • encodeBoolean(value: boolean, stream: OutputBinaryStream): void
  • Parameters

    • value: boolean
    • stream: OutputBinaryStream

    Returns void

encodeBrowseDirection

  • encodeBrowseDirection(value: BrowseDirection, stream: OutputBinaryStream): void
  • Parameters

    Returns void

Const encodeByte

  • encodeByte(value: UInt8, stream: OutputBinaryStream): void
  • Parameters

    • value: UInt8
    • stream: OutputBinaryStream

    Returns void

encodeByteString

  • encodeByteString(byteString: ByteString, stream: OutputBinaryStream): void
  • Parameters

    • byteString: ByteString
    • stream: OutputBinaryStream

    Returns void

encodeDataValue

  • encodeDataValue(dataValue: DataValue, stream: OutputBinaryStream): void
  • Parameters

    • dataValue: DataValue
    • stream: OutputBinaryStream

    Returns void

encodeDateTime

  • encodeDateTime(date: Date | null, stream: OutputBinaryStream): void
  • Parameters

    • date: Date | null
    • stream: OutputBinaryStream

    Returns void

encodeDiagnosticInfo

  • encodeDiagnosticInfo(value: DiagnosticInfo | null, stream: OutputBinaryStream): void
  • Parameters

    Returns void

encodeDouble

  • encodeDouble(value: Double, stream: OutputBinaryStream): void
  • Parameters

    • value: Double
    • stream: OutputBinaryStream

    Returns void

encodeExpandedNodeId

  • encodeExpandedNodeId(expandedNodeId: ExpandedNodeId, stream: OutputBinaryStream): void
  • Parameters

    Returns void

encodeFloat

  • encodeFloat(value: Float, stream: OutputBinaryStream): void
  • Parameters

    • value: Float
    • stream: OutputBinaryStream

    Returns void

encodeGuid

  • encodeGuid(guid: Guid, stream: OutputBinaryStream): void
  • Parameters

    • guid: Guid
    • stream: OutputBinaryStream

    Returns void

encodeHighAccuracyDateTime

  • encodeHighAccuracyDateTime(date: Date | null, picoseconds: number, stream: OutputBinaryStream): void
  • Parameters

    • date: Date | null
    • picoseconds: number

      {number of picoseconds to improve javascript date... }

    • stream: OutputBinaryStream

    Returns void

encodeInt16

  • encodeInt16(value: Int16, stream: OutputBinaryStream): void
  • Parameters

    • value: Int16
    • stream: OutputBinaryStream

    Returns void

encodeInt32

  • encodeInt32(value: Int32, stream: OutputBinaryStream): void
  • Parameters

    • value: Int32
    • stream: OutputBinaryStream

    Returns void

Const encodeInt64

  • encodeInt64(value: UInt64 | number, stream: OutputBinaryStream): void
  • Parameters

    • value: UInt64 | number
    • stream: OutputBinaryStream

    Returns void

encodeInt8

  • encodeInt8(value: Int8, stream: OutputBinaryStream): void
  • Parameters

    • value: Int8
    • stream: OutputBinaryStream

    Returns void

encodeLocaleId

  • encodeLocaleId(localeId: LocaleId, stream: OutputBinaryStream): void
  • Parameters

    • localeId: LocaleId
    • stream: OutputBinaryStream

    Returns void

encodeLocalizedText

  • encodeLocalizedText(value: LocalizedText, stream: OutputBinaryStream): void
  • Parameters

    Returns void

encodeNodeId

  • encodeNodeId(nodeId: NodeId, stream: OutputBinaryStream): void
  • Parameters

    • nodeId: NodeId
    • stream: OutputBinaryStream

    Returns void

encodeQualifiedName

  • encodeQualifiedName(value: QualifiedName, stream: OutputBinaryStream): void
  • Parameters

    Returns void

Const encodeSByte

  • encodeSByte(value: Int8, stream: OutputBinaryStream): void
  • Parameters

    • value: Int8
    • stream: OutputBinaryStream

    Returns void

encodeStatusCode

  • Parameters

    Returns void

encodeString

  • encodeString(value: null | string, stream: OutputBinaryStream): void
  • Parameters

    • value: null | string
    • stream: OutputBinaryStream

    Returns void

encodeTimestampsToReturn

  • Parameters

    Returns void

Const encodeUABoolean

  • encodeUABoolean(value: boolean, stream: OutputBinaryStream): void
  • Parameters

    • value: boolean
    • stream: OutputBinaryStream

    Returns void

Const encodeUAString

  • encodeUAString(value: null | string, stream: OutputBinaryStream): void
  • Parameters

    • value: null | string
    • stream: OutputBinaryStream

    Returns void

encodeUInt16

  • encodeUInt16(value: UInt16, stream: OutputBinaryStream): void
  • Parameters

    • value: UInt16
    • stream: OutputBinaryStream

    Returns void

encodeUInt32

  • encodeUInt32(value: UInt32, stream: OutputBinaryStream): void
  • Parameters

    • value: UInt32
    • stream: OutputBinaryStream

    Returns void

encodeUInt64

  • encodeUInt64(value: UInt64 | number, stream: OutputBinaryStream): void
  • Parameters

    • value: UInt64 | number
    • stream: OutputBinaryStream

    Returns void

encodeUInt8

  • encodeUInt8(value: UInt8, stream: OutputBinaryStream): void
  • Parameters

    • value: UInt8
    • stream: OutputBinaryStream

    Returns void

encode_ArgumentList

  • encode_ArgumentList(definition: ArgumentDef[], args: any[], stream: OutputBinaryStream): void
  • Parameters

    • definition: ArgumentDef[]
    • args: any[]
    • stream: OutputBinaryStream

    Returns void

ensureDatatypeExtracted

  • Parameters

    Returns Promise<ExtraDataTypeManager>

ensureDatatypeExtractedWithCallback

ensureObjectIsSecure

  • ensureObjectIsSecure(node: BaseNode): void
  • this method install the access right restriction on the given node and its children values will only be available to user with role Administrator or supervisor and with a signed and encrypted channel.

    Parameters

    • node: BaseNode

      the node which permissions are to be adjusted

    Returns void

extractConditionFields

  • Parameters

    Returns Promise<string[]>

extractEventFields

  • method

    extractEventFields extract a array of eventFields from a event node, matching the selectClauses

    Parameters

    Returns Variant[]

extractFirstCertificateInChain

  • extractFirstCertificateInChain(certificateChain?: Buffer | null): Buffer | null
  • Parameters

    • Optional certificateChain: Buffer | null

    Returns Buffer | null

extractFullyQualifiedDomainName

  • extractFullyQualifiedDomainName(): Promise<string>
  • extract FullyQualifiedDomainName of this computer

    Returns Promise<string>

extractRange

  • return a deep copy of the dataValue by applying indexRange if necessary on Array/Matrix

    Parameters

    • dataValue: DataValue
    • indexRange: NumericalRange

    Returns DataValue

fieldsToJson

  • Parameters

    • fields: string[]
    • eventFields: Variant[]

    Returns EventStuff

filterDiagnosticInfo

  • filterDiagnosticInfo(returnDiagnostics: number, response: CallResponse): void
  • Parameters

    Returns void

filterDiagnosticInfoLevel

  • filterDiagnosticInfoLevel(returnDiagnostics: number, diagnostic: DiagnosticInfo | null, diagnosticInfoMask: DiagnosticInfo_Mask): DiagnosticInfo | null
  • Parameters

    • returnDiagnostics: number
    • diagnostic: DiagnosticInfo | null
    • diagnosticInfoMask: DiagnosticInfo_Mask

    Returns DiagnosticInfo | null

filterDiagnosticOperationLevel

  • Parameters

    Returns DiagnosticInfo | null

filterDiagnosticServiceLevel

  • Parameters

    Returns DiagnosticInfo | null

findActiveConditions

  • Enumerate all events

    Parameters

    Returns Promise<EventStuff[]>

findServers

  • findServers(discoveryServerEndpointUri: string, callback: (err: Error | null, result?: FindServerResults) => void): void
  • findServers(discoveryServerEndpointUri: string): Promise<FindServerResults>
  • extract the server endpoints exposed by a discovery server

    method

    findServers

    async

    Parameters

    Returns void

  • Parameters

    • discoveryServerEndpointUri: string

    Returns Promise<FindServerResults>

findServersOnNetwork

  • findServersOnNetwork(discoveryServerEndpointUri: string): Promise<ServerOnNetwork[]>
  • findServersOnNetwork(discoveryServerEndpointUri: string, callback: (err: Error | null, servers?: ServerOnNetwork[]) => void): void
  • extract the server endpoints exposed by a discovery server

    Parameters

    • discoveryServerEndpointUri: string

    Returns Promise<ServerOnNetwork[]>

  • Parameters

    • discoveryServerEndpointUri: string
    • callback: (err: Error | null, servers?: ServerOnNetwork[]) => void

    Returns void

fromURI

  • Parameters

    • uri: string | null

    Returns SecurityPolicy

generateAddressSpace

  • generateAddressSpace(addressSpace: IAddressSpace, xmlFiles: string | string[], callback: (err?: Error) => void): void
  • generateAddressSpace(addressSpace: IAddressSpace, xmlFiles: string | string[]): Promise<void>
  • Parameters

    • addressSpace: IAddressSpace
    • xmlFiles: string | string[]
    • callback: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

  • Parameters

    Returns Promise<void>

generateAddressSpaceRaw

  • generateAddressSpaceRaw(addressSpace: IAddressSpace, xmlFiles: string | string[], xmlLoader: (nodeset2xmlUri: string) => Promise<string>): Promise<void>
  • xmlfiles:

    a lis of xml files

    Parameters

    • addressSpace: IAddressSpace

      the addressSpace to populate

    • xmlFiles: string | string[]
    • xmlLoader: (nodeset2xmlUri: string) => Promise<string>

      a helper function to return the content of the xml file

        • (nodeset2xmlUri: string): Promise<string>
        • Parameters

          • nodeset2xmlUri: string

          Returns Promise<string>

    Returns Promise<void>

getAggregateConfiguration

getAggregateData

getAverageData

  • getAverageData(node: UAVariable, processingInterval: number, startDate: Date, endDate: Date, callback: (err: Error | null, dataValues?: DataValue[]) => void): void
  • Parameters

    • node: UAVariable
    • processingInterval: number
    • startDate: Date
    • endDate: Date
    • callback: (err: Error | null, dataValues?: DataValue[]) => void
        • (err: Error | null, dataValues?: DataValue[]): void
        • Parameters

          • err: Error | null
          • Optional dataValues: DataValue[]

          Returns void

    Returns void

getCryptoFactory

  • Parameters

    Returns CryptoFactory | null

getCurrentClock

  • Returns PreciseClock

getCurrentClockWithJavascriptDate

  • Returns PreciseClock

    PreciseClock

getDefaultCertificateManager

  • Parameters

    • name: "PKI" | "UserPKI"

    Returns OPCUACertificateManager

getExtensionObjectConstructor

  • getExtensionObjectConstructor(session: IBasicSession, dataTypeNodeId: NodeId): Promise<AnyConstructorFunc>
  • Parameters

    Returns Promise<AnyConstructorFunc>

getExtraDataTypeManager

  • getExtraDataTypeManager(session: IBasicSession): Promise<ExtraDataTypeManager>
  • Parameters

    Returns Promise<ExtraDataTypeManager>

getFakeTransport

  • getFakeTransport(): any
  • Returns any

getFullyQualifiedDomainName

  • getFullyQualifiedDomainName(optional_max_length?: number): string
  • Parameters

    • Optional optional_max_length: number

    Returns string

getFunctionParameterNames

  • getFunctionParameterNames(func: FunctionVariadic): string[]
  • Parameters

    • func: FunctionVariadic

    Returns string[]

getHostname

  • getHostname(): string
  • Returns string

getInterpolatedData

  • getInterpolatedData(node: UAVariable, processingInterval: number, startDate: Date, endDate: Date, callback: (err: Error | null, dataValues?: DataValue[]) => void): void
  • Parameters

    • node: UAVariable
    • processingInterval: number
    • startDate: Date
    • endDate: Date
    • callback: (err: Error | null, dataValues?: DataValue[]) => void
        • (err: Error | null, dataValues?: DataValue[]): void
        • Parameters

          • err: Error | null
          • Optional dataValues: DataValue[]

          Returns void

    Returns void

getInterval

  • getInterval(startTime: Date, duration: number, indexHint: number, dataValues: DataValue[]): Interval
  • Parameters

    • startTime: Date
    • duration: number
    • indexHint: number
    • dataValues: DataValue[]

    Returns Interval

getMaxData

  • getMaxData(node: UAVariable, processingInterval: number, startDate: Date, endDate: Date, callback: (err: Error | null, dataValues?: DataValue[]) => void): void
  • Parameters

    • node: UAVariable
    • processingInterval: number
    • startDate: Date
    • endDate: Date
    • callback: (err: Error | null, dataValues?: DataValue[]) => void
        • (err: Error | null, dataValues?: DataValue[]): void
        • Parameters

          • err: Error | null
          • Optional dataValues: DataValue[]

          Returns void

    Returns void

getMethodDeclaration_ArgumentList

getMinData

  • getMinData(node: UAVariable, processingInterval: number, startDate: Date, endDate: Date, callback: (err: Error | null, dataValues?: DataValue[]) => void): void
  • Parameters

    • node: UAVariable
    • processingInterval: number
    • startDate: Date
    • endDate: Date
    • callback: (err: Error | null, dataValues?: DataValue[]) => void
        • (err: Error | null, dataValues?: DataValue[]): void
        • Parameters

          • err: Error | null
          • Optional dataValues: DataValue[]

          Returns void

    Returns void

getObjectClassName

  • getObjectClassName(obj: unknown): string
  • method

    getObjectClassName

    Parameters

    • obj: unknown

    Returns string

getOptionsForSymmetricSignAndEncrypt

getStatusCodeFromCode

  • returns the StatusCode corresponding to the provided value, if any

    note:

    if code is not known , then StatusCodes.Bad will be returned

    Parameters

    • code: number

    Returns StatusCode

getThumbprint

  • getThumbprint(certificateChain: Buffer | null): Buffer | null
  • Parameters

    • certificateChain: Buffer | null

    Returns Buffer | null

Let get_clock_tick

  • get_clock_tick(): number
  • Returns number

Const get_empty_nodeset_filename

  • get_empty_nodeset_filename(): string
  • Returns string

Const get_mini_nodeset_filename

  • get_mini_nodeset_filename(): string
  • Returns string

hasTokenExpired

  • Parameters

    Returns boolean

hexDump

  • hexDump(buffer: Buffer | null, width?: number, maxSize?: number): string
  • Parameters

    • buffer: Buffer | null
    • Optional width: number
    • Optional maxSize: number

    Returns string

Const hrtime

  • hrtime(time?: [number, number]): [number, number]
  • Parameters

    • Optional time: [number, number]

    Returns [number, number]

installAggregateConfigurationOptions

installAlarmMonitoring

  • Parameters

    Returns Promise<ClientAlarmList>

installPeriodicClockAdjustment

  • installPeriodicClockAdjustment(): void
  • Returns void

install_optional_cpu_and_memory_usage_node

  • install_optional_cpu_and_memory_usage_node(server: any): void
  • optionally install a CPU Usage and Memory Usage node ( condition : running on linux and require("usage")

    method

    install_optional_cpu_and_memory_usage_node

    Parameters

    • server: any

    Returns void

interpolateValue

  • Parameters

    Returns DataValue

interpolatedValue

isBad

  • Parameters

    Returns boolean

isDataEncoding

  • isDataEncoding(dataEncoding: unknown): boolean
  • Parameters

    • dataEncoding: unknown

    Returns boolean

isEmptyNonce

  • isEmptyNonce(nonce: Buffer): boolean
  • returns true if the nonce is null or zero (all bytes set to 0)

    Parameters

    • nonce: Buffer

    Returns boolean

isGood

  • Parameters

    Returns boolean

isGoodish

  • Parameters

    Returns boolean

isMinDate

  • isMinDate(date?: Date | null): boolean
  • Parameters

    • Optional date: Date | null

    Returns boolean

isNullOrUndefined

  • isNullOrUndefined(value: unknown | undefined): boolean
  • Parameters

    • value: unknown | undefined

    Returns boolean

isOutsideDeadbandAbsolute

  • isOutsideDeadbandAbsolute(variant1: Variant, variant2: Variant, deadbandValue: number): boolean
  • method

    isOutsideDeadbandAbsolute

    Parameters

    Returns boolean

    true if the element is in deadBand

isOutsideDeadbandNone

  • isOutsideDeadbandNone(variant1: Variant, variant2: Variant): boolean
  • method

    isOutsideDeadbandNone

    Parameters

    Returns boolean

    true if the element is in deadBand

isOutsideDeadbandPercent

  • method

    isOutsideDeadband

    Parameters

    Returns boolean

    true if the element is outside deadBand

isValidAttributeId

  • isValidAttributeId(attributeId: number): boolean
  • Parameters

    • attributeId: number

    Returns boolean

isValidBoolean

  • isValidBoolean(value: unknown): boolean
  • Parameters

    • value: unknown

    Returns boolean

Const isValidByte

  • isValidByte(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidByteString

  • isValidByteString(value: unknown): boolean
  • Parameters

    • value: unknown

    Returns boolean

isValidDataEncoding

  • Parameters

    Returns boolean

isValidDateTime

  • isValidDateTime(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isValidDouble

  • isValidDouble(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidFloat

  • isValidFloat(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidGuid

  • isValidGuid(guid: string): boolean
  • checks if provided string is a valid Guid a valid GUID has the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX when X is a hexadecimal digit

    method

    isValidGuid

    Parameters

    • guid: string

      the GUID to test for validaty

    Returns boolean

    • true if the string is a valid GUID.

isValidInt16

  • isValidInt16(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidInt32

  • isValidInt32(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

Const isValidInt64

  • isValidInt64(value?: number | number[]): boolean
  • Parameters

    • Optional value: number | number[]

    Returns boolean

isValidInt8

  • isValidInt8(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidNodeId

  • isValidNodeId(nodeId: NodeId): boolean
  • Parameters

    Returns boolean

Const isValidSByte

  • isValidSByte(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidString

  • isValidString(value: unknown): boolean
  • Parameters

    • value: unknown

    Returns boolean

isValidUInt16

  • isValidUInt16(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidUInt32

  • isValidUInt32(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidUInt64

  • isValidUInt64(value?: number | number[]): boolean
  • Parameters

    • Optional value: number | number[]

    Returns boolean

isValidUInt8

  • isValidUInt8(value: number): boolean
  • Parameters

    • value: number

    Returns boolean

isValidVariant

  • isValidVariant(arrayType: VariantArrayType, dataType: DataType, value: unknown, dimensions?: number[] | null): boolean
  • Parameters

    Returns boolean

is_valid_endpointUrl

  • is_valid_endpointUrl(endpointUrl: string): boolean
  • Parameters

    • endpointUrl: string

    Returns boolean

lowerFirstLetter

  • lowerFirstLetter(str: string): string
  • lowerFirstLetter convert a OPCUA Identifier to a javascript Identifier

    summary

    OPCUA and Javascript use two different rules to build identifiers.

    OPCUA Identifier usually starts with a upper case letter and word are join together, this is known as the Pascal case, or CapitalizedWords convention. (for instance HelloWorld) But sometime, OPCUA identifiers do not follow this convention strictly and we can find various other convention being applied such as underscore between word, or addition of ACRONYMIC prefixes. On it's own, this causes great confusion and inconsistency in programming style.

    Javascript uses a slightly different convention called camelCase where word are joined together and inner words starts with a capital letter whereas first word starts with a lower case letter. (for instance helloWorld)

    In node-opcua we have taken the opinionated decision to consistently use camelCase convention for object properties so that all the code look nice and consistent. the lowerFirstLetter method can be used to easily convert from the OPCUA naming convention to javascript naming convention by applying the following rules.

    • each ascii sequence in a identifier will be converted to lower camel case.
    • when an identifier only contains upper case letter then it will be untouched. ( i.e CQDF => CQFD) (this rules helps to preserve acronyms)
    • when a identifier starts with more than one UpperCase letter but still contain lowercase letter then the first Uppercase letter excluding the last one will be converted to lower case ( ie: EURange = > euRange)
    • when a identifier contains several sequences delimited with underscores (_) the above rules will be applied to each of the element of the sequence ( ie: ALM_FlowOutOfTolerance => ALM_flowOutOfTolerance ( ALM=>ALM , FlowOutOfTolerance=>flowOutOfTolerance)
    reference
    example

    HelloWorld => helloWorld XAxis => xAxis EURange => euRange DATE => DATE XYZ => XYZ AB => AB Ab => ab A => a T1ABC8 => T1ABC8 F_ABC_D => F_ABC_D ALM_Timeout => ALM_timeout SV_GasOn => SV_gasOn DI_VAL_FlowImp => DI_VAL_flowImp

    Parameters

    • str: string

    Returns string

makeAccessLevelExFlag

  • Parameters

    • str: string | number | null

    Returns AccessLevelExFlag

makeAccessLevelFlag

  • Parameters

    • str: string | number | null

    Returns AccessLevelFlag

makeAccessRestrictionsFlag

  • Parameters

    • str: string | number | null

    Returns AccessRestrictionsFlag

makeApplicationUrn

  • makeApplicationUrn(hostname: string, suffix: string): string
  • Parameters

    • hostname: string
    • suffix: string

    Returns string

makeAttributeEventName

makeBoiler

  • makeBoiler(addressSpace: AddressSpace, options: { browseName: string; organizedBy: BaseNode }): Boiler
  • Parameters

    Returns Boiler

makeBrowsePath

  • Parameters

    Returns BrowsePath

makeEUInformation

  • makeEUInformation(symbol: string, shortName: string, longName: string): EUInformation
  • Parameters

    • symbol: string
    • shortName: string
    • longName: string

    Returns EUInformation

makeExpandedNodeId

  • makeExpandedNodeId(value: unknown, namespace?: number): ExpandedNodeId
  • method

    makeExpandedNodeId

    Parameters

    • value: unknown
    • Optional namespace: number

    Returns ExpandedNodeId

makeNodeClassMask

  • Parameters

    • str: string

    Returns NodeClassMask

makeNodeId

  • makeNodeId(value: string | Buffer | number, namespace?: number): NodeId
  • construct a node Id from a value and a namespace.

    method

    makeNodeId

    static

    Parameters

    • value: string | Buffer | number
    • Optional namespace: number

    Returns NodeId

makeOptionalsMap

  • makeOptionalsMap(optionals?: string[] | null): OptionalMap
  • Parameters

    • Optional optionals: string[] | null

    Returns OptionalMap

makePermissionFlag

  • makePermissionFlag(str: string | number | null): number
  • Parameters

    • str: string | number | null

    Returns number

makeRefId

  • makeRefId(referenceTypeName: string): NodeId
  • Parameters

    • referenceTypeName: string

    Returns NodeId

makeRelativePath

  • makeRelativePath(str: string, addressSpace?: any): RelativePath
  • construct a RelativePath from a string containing the relative path description. The string must comply to the OPCUA BNF for RelativePath ( see part 4 - Annexe A)

    method

    makeRelativePath

    example:
     var relativePath = makeRelativePath("/Server.ServerStatus.CurrentTime");
    

    Parameters

    • str: string
    • Optional addressSpace: any

    Returns RelativePath

makeResultMask

  • Parameters

    • str: string

    Returns ResultMask

makeRoles

makeSubject

  • makeSubject(applicationName: string, hostname: string): string
  • Parameters

    • applicationName: string
    • hostname: string

    Returns string

makeUserManager

matchUri

  • matchUri(endpointUri1: string | null, endpointUri2: string | null): boolean
  • returns true if two endpoint matches the same address:

    see

    https://www.dnscheck.co/faq

    see

    https://tools.ietf.org/html/rfc4343 : Domain Name System (DNS) Case Insensitivity Clarification

    Parameters

    • endpointUri1: string | null
    • endpointUri2: string | null

    Returns boolean

messageHeaderToString

  • messageHeaderToString(messageChunk: Buffer): string
  • convert the messageChunk header to a string

    method

    messageHeaderToString

    Parameters

    • messageChunk: Buffer

    Returns string

nonceAlreadyBeenUsed

  • nonceAlreadyBeenUsed(nonce?: Buffer): boolean
  • Parameters

    • Optional nonce: Buffer

    Returns boolean

packTcpMessage

  • packTcpMessage(msgType: string, encodeableObject: BaseUAObject): Buffer
  • Parameters

    • msgType: string
    • encodeableObject: BaseUAObject

    Returns Buffer

parseEndpointUrl

  • parseEndpointUrl(endpointUrl: string): url.Url
  • Parameters

    • endpointUrl: string

    Returns url.Url

performCertificateSanityCheck

  • performCertificateSanityCheck(serverOrClient: "server" | "client", certificateManager: OPCUACertificateManager, applicationUri: string): Promise<void>
  • Parameters

    Returns Promise<void>

permissionFlagToString

  • Parameters

    Returns string

populateDataTypeManager

  • populateDataTypeManager(session: IBasicSession, dataTypeManager: ExtraDataTypeManager, force: boolean): Promise<void>
  • Parameters

    • session: IBasicSession
    • dataTypeManager: ExtraDataTypeManager
    • force: boolean

    Returns Promise<void>

prepareFQDN

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

promoteOpaqueStructure

  • Parameters

    Returns Promise<void>

promoteToMultiStateDiscrete

  • promoteToMultiStateDiscrete<T, DT>(node: UAVariable): UAMultiStateDiscreteImpl<T, DT>
  • Type parameters

    Parameters

    Returns UAMultiStateDiscreteImpl<T, DT>

promoteToMultiStateValueDiscrete

  • promoteToMultiStateValueDiscrete<T, DT>(node: UAVariable): UAMultiStateValueDiscreteImpl<T, DT>
  • Type parameters

    Parameters

    Returns UAMultiStateValueDiscreteImpl<T, DT>

promoteToStateMachine

  • Parameters

    Returns UAStateMachineEx

promoteToTwoStateDiscrete

randomAccessLevel

  • Returns AccessLevelFlag

randomAccessLevelEx

  • Returns AccessLevelExFlag

randomBoolean

  • randomBoolean(): boolean
  • Returns boolean

Const randomByte

  • Returns UInt8

randomByteString

  • randomByteString(value: unknown, len: number): ByteString
  • Parameters

    • value: unknown
    • len: number

    Returns ByteString

randomDateTime

  • randomDateTime(): Date
  • Returns Date

randomDouble

  • Returns Double

randomFloat

  • Returns Float

randomGuid

  • randomGuid(): Guid
  • Returns Guid

randomInt16

  • Returns Int16

randomInt32

  • Returns Int32

randomInt64

  • Returns Int64

randomInt8

  • randomInt8(): Int8
  • Returns Int8

randomNodeId

  • Returns NodeId

Const randomSByte

  • randomSByte(): Int8
  • Returns Int8

randomString

  • randomString(): string
  • Returns string

randomUInt16

  • Returns UInt16

randomUInt32

  • Returns UInt32

randomUInt64

  • Returns UInt64

randomUInt8

  • Returns UInt8

readHistoryServerCapabilities

readNamespaceArray

  • Parameters

    Returns Promise<string[]>

readNodeSet2XmlFile

  • readNodeSet2XmlFile(xmlFile: string): Promise<string>
  • Parameters

    • xmlFile: string

    Returns Promise<string>

readProcessedDetails

readRawMessageHeader

  • readRawMessageHeader(data: Buffer): PacketInfo
  • Parameters

    • data: Buffer

    Returns PacketInfo

readUAAnalogItem

  • method

    readUAAnalogItem

    Parameters

    Returns Promise<AnalogDataItemSnapshot>

  • Parameters

    Returns void

referenceTypeToString

  • Parameters

    Returns string

releaseBonjour

  • releaseBonjour(): void
  • Returns void

removeElement

replaceBufferWithHexDump

  • replaceBufferWithHexDump(obj: Record<string, { toString: any }>): any
  • Parameters

    • obj: Record<string, { toString: any }>

    Returns any

resolveDynamicExtensionObject

  • resolveDynamicExtensionObject(session: IBasicSession, variant: Variant, dataTypeManager: ExtraDataTypeManager): Promise<void>
  • Parameters

    Returns Promise<void>

resolveFullyQualifiedDomainName

  • resolveFullyQualifiedDomainName(str: string): string
  • Parameters

    • str: string

    Returns string

resolveNodeId

  • method

    resolveNodeId

    static

    Parameters

    Returns NodeId

    the nodeId

resolveOpaqueOnAddressSpace

  • Parameters

    Returns Promise<void>

resolveReferenceNode

resolveReferenceType

roundToFloat2

  • roundToFloat2(float: number): number
  • Parameters

    • float: number

    Returns number

sameAnnouncement

  • Parameters

    Returns boolean

sameDataValue

  • method

    sameDataValue

    Parameters

    Returns boolean

    true if data values are identical

sameNodeId

  • Parameters

    Returns boolean

sameStatusCode

  • Parameters

    Returns boolean

sameVariant

  • returns true if the two variant represent the same value

    Parameters

    • v1: Variant

      the first variant to compare

    • v2: Variant

      the variant to compare with

    Returns boolean

serverTimestampHasChanged

  • Parameters

    Returns boolean

setDeprecated

  • setDeprecated(constructor: FunctionVariadic, methodName: string, helpString: string): void
  • Parameters

    • constructor: FunctionVariadic
    • methodName: string
    • helpString: string

    Returns void

setFakeTransport

  • Parameters

    Returns void

setNamespaceMetaData

  • setNamespaceMetaData(namespace: INamespace): void
  • Parameters

    Returns void

set_flag

  • set_flag(value: number, mask: number | { value: number }): number
  • set a flag

    method

    set_flag

    Parameters

    • value: number
    • mask: number | { value: number }

    Returns number

simpleAttributeOperandToShortString

  • method

    toShortString

    example:

    Parameters

    Returns string

sourceTimestampHasChanged

  • Parameters

    Returns boolean

stringToQualifiedName

  • method

    stringToQualifiedName

    example

    stringToQualifiedName("Hello") => {namespaceIndex: 0, name: "Hello"} stringToQualifiedName("3:Hello") => {namespaceIndex: 3, name: "Hello"}

    Parameters

    • value: string

    Returns QualifiedName

timestamp

  • timestamp(): string
  • Returns string

timestampHasChanged

toURI

  • Parameters

    Returns string

uninstallAlarmMonitoring

  • uninstallAlarmMonitoring(session: ClientSession): Promise<void>
  • Parameters

    Returns Promise<void>

uninstallPeriodicClockAdjustment

  • uninstallPeriodicClockAdjustment(): void
  • Returns void

validateLocaleId

  • validateLocaleId(value: unknown): boolean
  • Parameters

    • value: unknown

    Returns boolean

verifyArguments_ArgumentList

  • method

    verifyArguments_ArgumentList

    Parameters

    Returns { inputArgumentResults?: StatusCode[]; statusCode: StatusCode }

    statusCode,inputArgumentResults

verifyIsOPCUAValidCertificate

  • verifyIsOPCUAValidCertificate(certificate: Certificate, certificateFile: string, type: "client" | "server", applicationUri: string): void
  • Parameters

    • certificate: Certificate
    • certificateFile: string
    • type: "client" | "server"
    • applicationUri: string

    Returns void

verifyRankAndDimensions

  • verifyRankAndDimensions(options: { arrayDimensions?: number[] | null; valueRank?: number }): void
  • ValueRank indicates whether the Value Attribute of the Variable can be an Array and how many dimensions

    • n > 1 : the Value is an array with the specified number of dimensions.
    • OneDimension (1): The value is an array with one dimension.
    • OneOrMoreDimensions (0): The value is an array with one or more dimensions.
    • Scalar (-1): The value is not an array.
    • Any (-2): The value can be a scalar or an array with any number of dimensions.
    • ScalarOrOneDimension (-3): The value can be a scalar or a one dimensional array.

    Parameters

    • options: { arrayDimensions?: number[] | null; valueRank?: number }
      • Optional arrayDimensions?: number[] | null
      • Optional valueRank?: number

    Returns void

verifySignature

  • verifySignature(receiverCertificate: Buffer, receiverNonce: Buffer, signature: SignatureData, senderCertificate: Buffer, securityPolicy: SecurityPolicy): boolean
  • Parameters

    Returns boolean

writeTCPMessageHeader

  • writeTCPMessageHeader(msgType: string, chunkType: string, totalLength: number, stream: OutputBinaryStream | Buffer): void
  • Parameters

    • msgType: string
    • chunkType: string
    • totalLength: number
    • stream: OutputBinaryStream | Buffer

    Returns void

Generated using TypeDoc