QOpcUa#

The QOpcUa namespace contains miscellaneous identifiers used throughout the Qt OPC UA library. More

Synopsis#

Static functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

PySide6.QtOpcUa.QOpcUa.NodeClass#

(inherits enum.Flag) This enum specifies the class a node belongs to. OPC-UA specifies a fixed set of eight different classes.

Constant

Description

QOpcUa.NodeClass.Undefined

The node class is not known. This is the case before the NodeClass attribute has been read on the server.

QOpcUa.NodeClass.Object

An Object node.

QOpcUa.NodeClass.Variable

A Variable node.

QOpcUa.NodeClass.Method

A Method node.

QOpcUa.NodeClass.ObjectType

An ObjectType node.

QOpcUa.NodeClass.VariableType

A VariableType node.

QOpcUa.NodeClass.ReferenceType

A ReferenceType node.

QOpcUa.NodeClass.DataType

A DataType node.

QOpcUa.NodeClass.View

A View node.

PySide6.QtOpcUa.QOpcUa.NodeAttribute#

(inherits enum.Flag) This enum contains the 22 node attributes defined in OPC-UA part 4, 5.

Constant

Description

QOpcUa.NodeAttribute.None

No node attribute.

QOpcUa.NodeAttribute.NodeId

Mandatory for all nodes. Contains the node’s id in the OPC UA address space.

QOpcUa.NodeAttribute.NodeClass

Mandatory for all nodes. Contains the node id describing the node class of the node.

QOpcUa.NodeAttribute.BrowseName

Mandatory for all nodes. Contains a non-localized human readable name of the node.

QOpcUa.NodeAttribute.DisplayName

Mandatory for all nodes. Contains a localized human readable name for display purposes.

QOpcUa.NodeAttribute.Description

Contains a localized human readable description of the node.

QOpcUa.NodeAttribute.WriteMask

Contains a bit mask. Each bit corresponds to a writable attribute (OPC-UA part 3, Table 3).

QOpcUa.NodeAttribute.UserWriteMask

Same as WriteMask but for the current user.

QOpcUa.NodeAttribute.IsAbstract

True if the node is an abstract type which means that no nodes of this type shall exist.

QOpcUa.NodeAttribute.Symmetric

True if a reference’s meaning is the same seen from both ends.

QOpcUa.NodeAttribute.InverseName

The localized inverse name of a reference (for example “ HasSubtype “ has the InverseName “SubtypeOf”).

QOpcUa.NodeAttribute.ContainsNoLoops

True if there is no way to get back to a node following forward references in the current view.

QOpcUa.NodeAttribute.EventNotifier

Contains a bit mask used to indicate if subscribing to events and access to historic events is supported (OPC-UA part 3, Table 5).

QOpcUa.NodeAttribute.Value

The value of a Variable node.

QOpcUa.NodeAttribute.DataType

The NodeId of the Value attribute’s data type (for example “ns=0;i=13” for DateTime , see https://opcfoundation.org/UA/schemas/1.03/ NodeIds .csv).

QOpcUa.NodeAttribute.ValueRank

Contains information about the structure of the Value attribute (scalar/array) (OPC-UA part 3, Table 8).

QOpcUa.NodeAttribute.ArrayDimensions

An array containing the length for each dimension of a multi-dimensional array.

QOpcUa.NodeAttribute.AccessLevel

Contains a bit mask. Each bit corresponds to an access capability (OPC-UA part 3, Table 8).

QOpcUa.NodeAttribute.UserAccessLevel

Same as AccessLevel , but for the current user.

QOpcUa.NodeAttribute.MinimumSamplingInterval

Contains the shortest possible interval in which the server is able to sample the value.

QOpcUa.NodeAttribute.Historizing

True if historical data is collected.

QOpcUa.NodeAttribute.Executable

True if the node is currently executable. Only relevant for Method nodes.

QOpcUa.NodeAttribute.UserExecutable

Same as Executable, but for the current user.

PySide6.QtOpcUa.QOpcUa.WriteMaskBit#

(inherits enum.Flag) This enum contains all possible bits for the WriteMask and UserWriteMask node attributes defined in OPC-UA part 3, Table 3.

Constant

Description

QOpcUa.WriteMaskBit.None

No attribute is writable.

QOpcUa.WriteMaskBit.AccessLevel

The AccessLevel attribute is writable.

QOpcUa.WriteMaskBit.ArrayDimensions

The ArrayDimensions attribute is writable.

QOpcUa.WriteMaskBit.BrowseName

The BrowseName attribute is writable.

QOpcUa.WriteMaskBit.ContainsNoLoops

The ContainsNoLoops attribute is writable.

QOpcUa.WriteMaskBit.DataType

The DataType attribute is writable.

QOpcUa.WriteMaskBit.Description

The Description attribute is writable.

QOpcUa.WriteMaskBit.DisplayName

The DisplayName attribute is writable.

QOpcUa.WriteMaskBit.EventNotifier

The EventNotifier attribute is writable.

QOpcUa.WriteMaskBit.Executable

The Executable attribute is writable.

QOpcUa.WriteMaskBit.Historizing

The Historizing attribute is writable.

QOpcUa.WriteMaskBit.InverseName

The InverseName attribute is writable.

QOpcUa.WriteMaskBit.IsAbstract

The IsAbstract attribute is writable.

QOpcUa.WriteMaskBit.MinimumSamplingInterval

The MinimumSamplingInterval attribute is writable.

QOpcUa.WriteMaskBit.NodeClass

The NodeClass attribute is writable.

QOpcUa.WriteMaskBit.NodeId

The NodeId attribute is writable.

QOpcUa.WriteMaskBit.Symmetric

The Symmetric attribute is writable.

QOpcUa.WriteMaskBit.UserAccessLevel

The UserAccessLevel attribute is writable.

QOpcUa.WriteMaskBit.UserExecutable

The UserExecutable attribute is writable.

QOpcUa.WriteMaskBit.UserWriteMask

The UserWriteMask attribute is writable.

QOpcUa.WriteMaskBit.ValueRank

The ValueRank attribute is writable.

QOpcUa.WriteMaskBit.WriteMask

The WriteMask attribute is writable.

QOpcUa.WriteMaskBit.ValueForVariableType

The Value attribute of a variable type is writable.

PySide6.QtOpcUa.QOpcUa.AccessLevelBit#

(inherits enum.Flag) This enum contains all possible bits for the AccessLevel and UserAccessLevel node attributes defined in OPC-UA part 3, Table 8.

Constant

Description

QOpcUa.AccessLevelBit.None

No read access to the Value attribute is permitted.

QOpcUa.AccessLevelBit.CurrentRead

The current value can be read.

QOpcUa.AccessLevelBit.CurrentWrite

The current value can be written.

QOpcUa.AccessLevelBit.HistoryRead

The history of the value is readable.

QOpcUa.AccessLevelBit.HistoryWrite

The history of the value is writable.

QOpcUa.AccessLevelBit.SemanticChange

The property variable generates SemanticChangeEvents.

QOpcUa.AccessLevelBit.StatusWrite

The status code of the value is writable.

QOpcUa.AccessLevelBit.TimestampWrite

The SourceTimestamp is writable.

PySide6.QtOpcUa.QOpcUa.EventNotifierBit#

(inherits enum.Flag) This enum contains all possible bits for the EventNotifier node attribute defined in OPC-UA part 3, Table 6.

Constant

Description

QOpcUa.EventNotifierBit.None

The node can’t be used to interact with events.

QOpcUa.EventNotifierBit.SubscribeToEvents

A client can subscribe to events.

QOpcUa.EventNotifierBit.HistoryRead

A client can read the event history.

QOpcUa.EventNotifierBit.HistoryWrite

A client can write the event history.

PySide6.QtOpcUa.QOpcUa.ReferenceTypeId#

This enum contains the reference types specified in OPC-UA part 3, 7. They are used to filter for a certain reference type in browseChildren and for the reference type information in QOpcUaReferenceDescription .

Constant

Description

QOpcUa.ReferenceTypeId.Unspecified

Not a valid reference type.

QOpcUa.ReferenceTypeId.References

The abstract base type for all references.

QOpcUa.ReferenceTypeId.NonHierarchicalReferences

The abstract base type for all non-hierarchical references.

QOpcUa.ReferenceTypeId.HierarchicalReferences

The abstract base type for all hierarchical references.

QOpcUa.ReferenceTypeId.HasChild

The abstract base type for all non-looping hierarchical references.

QOpcUa.ReferenceTypeId.Organizes

The type for hierarchical references that are used to organize nodes.

QOpcUa.ReferenceTypeId.HasEventSource

The type for non-looping hierarchical references that are used to organize event sources.

QOpcUa.ReferenceTypeId.HasModellingRule

The type for references from instance declarations to modelling rule nodes.

QOpcUa.ReferenceTypeId.HasEncoding

The type for references from data type nodes to to data type encoding nodes.

QOpcUa.ReferenceTypeId.HasDescription

The type for references from data type encoding nodes to data type description nodes.

QOpcUa.ReferenceTypeId.HasTypeDefinition

The type for references from a instance node to its type definition node.

QOpcUa.ReferenceTypeId.GeneratesEvent

The type for references from a node to an event type that is raised by node.

QOpcUa.ReferenceTypeId.Aggregates

The type for non-looping hierarchical references that are used to aggregate nodes into complex types.

QOpcUa.ReferenceTypeId.HasSubtype

The type for non-looping hierarchical references that are used to define sub types.

QOpcUa.ReferenceTypeId.HasProperty

The type for non-looping hierarchical reference from a node to its property.

QOpcUa.ReferenceTypeId.HasComponent

The type for non-looping hierarchical reference from a node to its component.

QOpcUa.ReferenceTypeId.HasNotifier

The type for non-looping hierarchical references that are used to indicate how events propagate from node to node.

QOpcUa.ReferenceTypeId.HasOrderedComponent

The type for non-looping hierarchical reference from a node to its component when the order of references matters.

QOpcUa.ReferenceTypeId.FromState

The type for a reference to the state before a transition.

QOpcUa.ReferenceTypeId.ToState

The type for a reference to the state after a transition.

QOpcUa.ReferenceTypeId.HasCause

The type for a reference to a method that can cause a transition to occur.

QOpcUa.ReferenceTypeId.HasEffect

The type for a reference to an event that may be raised when a transition occurs.

QOpcUa.ReferenceTypeId.HasHistoricalConfiguration

The type for a reference to the historical configuration for a data variable.

QOpcUa.ReferenceTypeId.HasSubStateMachine

The type for a reference to a substate for a state.

QOpcUa.ReferenceTypeId.HasArgumentDescription

The type for a reference to an argument description

QOpcUa.ReferenceTypeId.HasOptionalInputArgumentDescription

The type for a reference to an optional input argument description

QOpcUa.ReferenceTypeId.AlwaysGeneratesEvent

The type for references from a node to an event type that is always raised by node.

QOpcUa.ReferenceTypeId.HasTrueSubState

The type for references from a TRUE super state node to a subordinate state node.

QOpcUa.ReferenceTypeId.HasFalseSubState

The type for references from a FALSE super state node to a subordinate state node.

QOpcUa.ReferenceTypeId.HasCondition

The type for references from a ConditionSource node to a Condition.

QOpcUa.ReferenceTypeId.HasPubSubConnection

The type for a reference to a PubSub connection

QOpcUa.ReferenceTypeId.DataSetToWriter

The type for a reference to a data set writer

QOpcUa.ReferenceTypeId.HasGuard

The type for a reference to a guard

QOpcUa.ReferenceTypeId.HasDataSetWriter

The type for a reference to a data set writer

QOpcUa.ReferenceTypeId.HasDataSetReader

The type for a reference to data set reader

QOpcUa.ReferenceTypeId.HasAlarmSuppressionGroup

The type for a reference to an alarm suppression group

QOpcUa.ReferenceTypeId.AlarmGroupMember

The type for a reference to an alarm group member

QOpcUa.ReferenceTypeId.HasEffectDisable

The type for a reference to an alarm which is disabled by a transition

QOpcUa.ReferenceTypeId.HasDictionaryEntry

The type for a reference to a dictionary entry

QOpcUa.ReferenceTypeId.HasInterface

The type for a reference to an interface

QOpcUa.ReferenceTypeId.HasAddIn

The type for a reference to an addin

QOpcUa.ReferenceTypeId.HasEffectEnable

The type for a reference to an alarm which is enabled by a transition

QOpcUa.ReferenceTypeId.HasEffectSuppressed

The type for a reference to an alarm which is suppressed by a transition

QOpcUa.ReferenceTypeId.HasEffectUnsuppressed

The type for a reference to an alarm which is unsuppressed by a transition

QOpcUa.ReferenceTypeId.HasWriterGroup

The type for a reference to a writer group

QOpcUa.ReferenceTypeId.HasReaderGroup

The type for a reference to a reader group

QOpcUa.ReferenceTypeId.AliasFor

The type for a reference to the node represented by an alias

PySide6.QtOpcUa.QOpcUa.Types#

Enumerates the types supported by Qt OPC UA.

Constant

Description

QOpcUa.Boolean

QOpcUa.Int32

QOpcUa.UInt32

QOpcUa.Double

QOpcUa.Float

QOpcUa.String

QOpcUa.LocalizedText

QOpcUa.DateTime

QOpcUa.UInt16

QOpcUa.Int16

QOpcUa.UInt64

QOpcUa.Int64

QOpcUa.Byte

QOpcUa.SByte

QOpcUa.ByteString

QOpcUa.XmlElement

QOpcUa.NodeId

QOpcUa.Guid

QOpcUa.QualifiedName

A name qualified by an OPC UA namespace index.

QOpcUa.StatusCode

QOpcUa.ExtensionObject

A data structure which contains a serialized object.

QOpcUa.Range

A range composed from the two double values low and high.

QOpcUa.EUInformation

The unit of measurement for an analog value.

QOpcUa.ComplexNumber

The OPC UA ComplexNumber type.

QOpcUa.DoubleComplexNumber

The OPC UA DoubleComplexNumber type.

QOpcUa.AxisInformation

Information about an axis.

QOpcUa.XV

A float value with a double precision position on an axis.

QOpcUa.ExpandedNodeId

A node id with additional namespace URI and server index.

QOpcUa.Argument

The OPC UA Argument type.

QOpcUa.Undefined

PySide6.QtOpcUa.QOpcUa.UaStatusCode#

Enumerates all status codes from https://opcfoundation.org/UA/schemas/1.03/Opc.Ua.StatusCodes.csv

Constant

Description

QOpcUa.Good

QOpcUa.BadUnexpectedError

QOpcUa.BadInternalError

QOpcUa.BadOutOfMemory

QOpcUa.BadResourceUnavailable

QOpcUa.BadCommunicationError

QOpcUa.BadEncodingError

QOpcUa.BadDecodingError

QOpcUa.BadEncodingLimitsExceeded

QOpcUa.BadRequestTooLarge

QOpcUa.BadResponseTooLarge

QOpcUa.BadUnknownResponse

QOpcUa.BadTimeout

QOpcUa.BadServiceUnsupported

QOpcUa.BadShutdown

QOpcUa.BadServerNotConnected

QOpcUa.BadServerHalted

QOpcUa.BadNothingToDo

QOpcUa.BadTooManyOperations

QOpcUa.BadTooManyMonitoredItems

QOpcUa.BadDataTypeIdUnknown

QOpcUa.BadCertificateInvalid

QOpcUa.BadSecurityChecksFailed

QOpcUa.BadCertificateTimeInvalid

QOpcUa.BadCertificateIssuerTimeInvalid

QOpcUa.BadCertificateHostNameInvalid

QOpcUa.BadCertificateUriInvalid

QOpcUa.BadCertificateUseNotAllowed

QOpcUa.BadCertificateIssuerUseNotAllowed

QOpcUa.BadCertificateUntrusted

QOpcUa.BadCertificateRevocationUnknown

QOpcUa.BadCertificateIssuerRevocationUnknown

QOpcUa.BadCertificateRevoked

QOpcUa.BadCertificateIssuerRevoked

QOpcUa.BadCertificateChainIncomplete

QOpcUa.BadUserAccessDenied

QOpcUa.BadIdentityTokenInvalid

QOpcUa.BadIdentityTokenRejected

QOpcUa.BadSecureChannelIdInvalid

QOpcUa.BadInvalidTimestamp

QOpcUa.BadNonceInvalid

QOpcUa.BadSessionIdInvalid

QOpcUa.BadSessionClosed

QOpcUa.BadSessionNotActivated

QOpcUa.BadSubscriptionIdInvalid

QOpcUa.BadRequestHeaderInvalid

QOpcUa.BadTimestampsToReturnInvalid

QOpcUa.BadRequestCancelledByClient

QOpcUa.BadTooManyArguments

QOpcUa.GoodSubscriptionTransferred

QOpcUa.GoodCompletesAsynchronously

QOpcUa.GoodOverload

QOpcUa.GoodClamped

QOpcUa.BadNoCommunication

QOpcUa.BadWaitingForInitialData

QOpcUa.BadNodeIdInvalid

QOpcUa.BadNodeIdUnknown

QOpcUa.BadAttributeIdInvalid

QOpcUa.BadIndexRangeInvalid

QOpcUa.BadIndexRangeNoData

QOpcUa.BadDataEncodingInvalid

QOpcUa.BadDataEncodingUnsupported

QOpcUa.BadNotReadable

QOpcUa.BadNotWritable

QOpcUa.BadOutOfRange

QOpcUa.BadNotSupported

QOpcUa.BadNotFound

QOpcUa.BadObjectDeleted

QOpcUa.BadNotImplemented

QOpcUa.BadMonitoringModeInvalid

QOpcUa.BadMonitoredItemIdInvalid

QOpcUa.BadMonitoredItemFilterInvalid

QOpcUa.BadMonitoredItemFilterUnsupported

QOpcUa.BadFilterNotAllowed

QOpcUa.BadStructureMissing

QOpcUa.BadEventFilterInvalid

QOpcUa.BadContentFilterInvalid

QOpcUa.BadFilterOperatorInvalid

QOpcUa.BadFilterOperatorUnsupported

QOpcUa.BadFilterOperandCountMismatch

QOpcUa.BadFilterOperandInvalid

QOpcUa.BadFilterElementInvalid

QOpcUa.BadFilterLiteralInvalid

QOpcUa.BadContinuationPointInvalid

QOpcUa.BadNoContinuationPoints

QOpcUa.BadReferenceTypeIdInvalid

QOpcUa.BadBrowseDirectionInvalid

QOpcUa.BadNodeNotInView

QOpcUa.BadServerUriInvalid

QOpcUa.BadServerNameMissing

QOpcUa.BadDiscoveryUrlMissing

QOpcUa.BadSempahoreFileMissing

QOpcUa.BadRequestTypeInvalid

QOpcUa.BadSecurityModeRejected

QOpcUa.BadSecurityPolicyRejected

QOpcUa.BadTooManySessions

QOpcUa.BadUserSignatureInvalid

QOpcUa.BadApplicationSignatureInvalid

QOpcUa.BadNoValidCertificates

QOpcUa.BadIdentityChangeNotSupported

QOpcUa.BadRequestCancelledByRequest

QOpcUa.BadParentNodeIdInvalid

QOpcUa.BadReferenceNotAllowed

QOpcUa.BadNodeIdRejected

QOpcUa.BadNodeIdExists

QOpcUa.BadNodeClassInvalid

QOpcUa.BadBrowseNameInvalid

QOpcUa.BadBrowseNameDuplicated

QOpcUa.BadNodeAttributesInvalid

QOpcUa.BadTypeDefinitionInvalid

QOpcUa.BadSourceNodeIdInvalid

QOpcUa.BadTargetNodeIdInvalid

QOpcUa.BadDuplicateReferenceNotAllowed

QOpcUa.BadInvalidSelfReference

QOpcUa.BadReferenceLocalOnly

QOpcUa.BadNoDeleteRights

QOpcUa.UncertainReferenceNotDeleted

QOpcUa.BadServerIndexInvalid

QOpcUa.BadViewIdUnknown

QOpcUa.BadViewTimestampInvalid

QOpcUa.BadViewParameterMismatch

QOpcUa.BadViewVersionInvalid

QOpcUa.UncertainNotAllNodesAvailable

QOpcUa.GoodResultsMayBeIncomplete

QOpcUa.BadNotTypeDefinition

QOpcUa.UncertainReferenceOutOfServer

QOpcUa.BadTooManyMatches

QOpcUa.BadQueryTooComplex

QOpcUa.BadNoMatch

QOpcUa.BadMaxAgeInvalid

QOpcUa.BadSecurityModeInsufficient

QOpcUa.BadHistoryOperationInvalid

QOpcUa.BadHistoryOperationUnsupported

QOpcUa.BadInvalidTimestampArgument

QOpcUa.BadWriteNotSupported

QOpcUa.BadTypeMismatch

QOpcUa.BadMethodInvalid

QOpcUa.BadArgumentsMissing

QOpcUa.BadTooManySubscriptions

QOpcUa.BadTooManyPublishRequests

QOpcUa.BadNoSubscription

QOpcUa.BadSequenceNumberUnknown

QOpcUa.BadMessageNotAvailable

QOpcUa.BadInsufficientClientProfile

QOpcUa.BadStateNotActive

QOpcUa.BadTcpServerTooBusy

QOpcUa.BadTcpMessageTypeInvalid

QOpcUa.BadTcpSecureChannelUnknown

QOpcUa.BadTcpMessageTooLarge

QOpcUa.BadTcpNotEnoughResources

QOpcUa.BadTcpInternalError

QOpcUa.BadTcpEndpointUrlInvalid

QOpcUa.BadRequestInterrupted

QOpcUa.BadRequestTimeout

QOpcUa.BadSecureChannelClosed

QOpcUa.BadSecureChannelTokenUnknown

QOpcUa.BadSequenceNumberInvalid

QOpcUa.BadProtocolVersionUnsupported

QOpcUa.BadConfigurationError

QOpcUa.BadNotConnected

QOpcUa.BadDeviceFailure

QOpcUa.BadSensorFailure

QOpcUa.BadOutOfService

QOpcUa.BadDeadbandFilterInvalid

QOpcUa.UncertainNoCommunicationLastUsableValue

QOpcUa.UncertainLastUsableValue

QOpcUa.UncertainSubstituteValue

QOpcUa.UncertainInitialValue

QOpcUa.UncertainSensorNotAccurate

QOpcUa.UncertainEngineeringUnitsExceeded

QOpcUa.UncertainSubNormal

QOpcUa.GoodLocalOverride

QOpcUa.BadRefreshInProgress

QOpcUa.BadConditionAlreadyDisabled

QOpcUa.BadConditionAlreadyEnabled

QOpcUa.BadConditionDisabled

QOpcUa.BadEventIdUnknown

QOpcUa.BadEventNotAcknowledgeable

QOpcUa.BadDialogNotActive

QOpcUa.BadDialogResponseInvalid

QOpcUa.BadConditionBranchAlreadyAcked

QOpcUa.BadConditionBranchAlreadyConfirmed

QOpcUa.BadConditionAlreadyShelved

QOpcUa.BadConditionNotShelved

QOpcUa.BadShelvingTimeOutOfRange

QOpcUa.BadNoData

QOpcUa.BadBoundNotFound

QOpcUa.BadBoundNotSupported

QOpcUa.BadDataLost

QOpcUa.BadDataUnavailable

QOpcUa.BadEntryExists

QOpcUa.BadNoEntryExists

QOpcUa.BadTimestampNotSupported

QOpcUa.GoodEntryInserted

QOpcUa.GoodEntryReplaced

QOpcUa.UncertainDataSubNormal

QOpcUa.GoodNoData

QOpcUa.GoodMoreData

QOpcUa.BadAggregateListMismatch

QOpcUa.BadAggregateNotSupported

QOpcUa.BadAggregateInvalidInputs

QOpcUa.BadAggregateConfigurationRejected

QOpcUa.GoodDataIgnored

QOpcUa.BadRequestNotAllowed

QOpcUa.GoodEdited

QOpcUa.GoodPostActionFailed

QOpcUa.UncertainDominantValueChanged

QOpcUa.GoodDependentValueChanged

QOpcUa.BadDominantValueChanged

QOpcUa.UncertainDependentValueChanged

QOpcUa.BadDependentValueChanged

QOpcUa.GoodCommunicationEvent

QOpcUa.GoodShutdownEvent

QOpcUa.GoodCallAgain

QOpcUa.GoodNonCriticalTimeout

QOpcUa.BadInvalidArgument

QOpcUa.BadConnectionRejected

QOpcUa.BadDisconnect

QOpcUa.BadConnectionClosed

QOpcUa.BadInvalidState

QOpcUa.BadEndOfStream

QOpcUa.BadNoDataAvailable

QOpcUa.BadWaitingForResponse

QOpcUa.BadOperationAbandoned

QOpcUa.BadExpectedStreamToBlock

QOpcUa.BadWouldBlock

QOpcUa.BadSyntaxError

QOpcUa.BadMaxConnectionsReached

PySide6.QtOpcUa.QOpcUa.ErrorCategory#

This enum contains simplified categories for OPC UA errors.

Constant

Description

QOpcUa.ErrorCategory.NoError

The operation has been successful.

QOpcUa.ErrorCategory.NodeError

There is a problem with the node, e. g. it does not exist.

QOpcUa.ErrorCategory.AttributeError

The attributes to operate on where invalid.

QOpcUa.ErrorCategory.PermissionError

The user did not have the permission to perform the operation.

QOpcUa.ErrorCategory.ArgumentError

The arguments supplied by the user were invalid or incomplete.

QOpcUa.ErrorCategory.TypeError

There has been a type mismatch for a write operation.

QOpcUa.ErrorCategory.ConnectionError

Communication with the server did not work as expected.

QOpcUa.ErrorCategory.UnspecifiedError

Any error that is not categorized. The detailed status code must be checked.

PySide6.QtOpcUa.QOpcUa.AxisScale#

The AxisScale enum as defined by OPC-UA part 8, 5.6.7.

Constant

Description

QOpcUa.AxisScale.Linear

QOpcUa.AxisScale.Log

QOpcUa.AxisScale.Ln

static PySide6.QtOpcUa.QOpcUa.errorCategory(statusCode)#
Parameters:

statusCodeUaStatusCode

Return type:

ErrorCategory

Converts statusCode to an ErrorCategory . ErrorCategory can be used in cases where the exact error is not important.

For error handling dependent on status codes, the full status code must be used instead. The meaning of the status codes for the different services is documented in OPC-UA part 4.

If statusCode has not been categorized, UnspecifiedError is returned. In this case, the user must check the full status code.

static PySide6.QtOpcUa.QOpcUa.isSecurePolicy(securityPolicy)#
Parameters:

securityPolicy – str

Return type:

bool

Returns true if securityPolicy is a secure policy, false otherwise.

static PySide6.QtOpcUa.QOpcUa.isSuccessStatus(statusCode)#
Parameters:

statusCodeUaStatusCode

Return type:

bool

This method can be used to check if a call has successfully finished.

Returns true if statusCode's severity field is Good.

static PySide6.QtOpcUa.QOpcUa.metaTypeToQOpcUaType(type)#
Parameters:

typeType

Return type:

Types

Returns the Qt OPC UA type from type. In case the type does not map, QOpcUa::Undefined is returned.

static PySide6.QtOpcUa.QOpcUa.namespace0Id(id)#
Parameters:

idNamespace0

Return type:

str

Returns a node id string for the namespace 0 identifier id.

static PySide6.QtOpcUa.QOpcUa.namespace0IdFromNodeId(nodeId)#
Parameters:

nodeId – str

Return type:

Namespace0

Returns the enum value from Namespace0 for nodeId.

If the node id is not in namespace 0 or doesn’t have a numeric identifier which is part of the OPC Foundation’s NodeIds .csv file, Unknown is returned.

If Qt OPC UA has been configured with -no-feature-ns0idnames, the check if the numeric identifier is part of the NodeIds .csv file is omitted. If the node id is in namespace 0 and has a numeric identifier, the identifier is returned regardless if it is part of the Namespace0 enum.

static PySide6.QtOpcUa.QOpcUa.namespace0IdName(id)#
Parameters:

idNamespace0

Return type:

str

Returns the name of the namespace 0 node id id.

If id is unknown or Qt OPC UA has been configured with -no-feature-ns0idnames, an empty string is returned.

static PySide6.QtOpcUa.QOpcUa.nodeIdEquals(first, second)#
Parameters:
  • first – str

  • second – str

Return type:

bool

Returns true if the two node ids first and second have the same namespace index and identifier. A node id string without a namespace index is assumed to be in namespace 0.

static PySide6.QtOpcUa.QOpcUa.nodeIdFromByteString(ns, identifier)#
Parameters:
Return type:

str

Creates a node id string from the namespace index ns and the byte string identifier.

See also

QOpcUaNode

static PySide6.QtOpcUa.QOpcUa.nodeIdFromGuid(ns, identifier)#
Parameters:
Return type:

str

Creates a node id string from the namespace index ns and the GUID identifier.

See also

QOpcUaNode

static PySide6.QtOpcUa.QOpcUa.nodeIdFromInteger(ns, identifier)#
Parameters:
  • ns – int

  • identifier – int

Return type:

str

Creates a node id string from the namespace index ns and the integer identifier.

See also

QOpcUaNode

static PySide6.QtOpcUa.QOpcUa.nodeIdFromReferenceType(referenceType)#
Parameters:

referenceTypeReferenceTypeId

Return type:

str

Creates a node id string for the reference type id referenceType.

static PySide6.QtOpcUa.QOpcUa.nodeIdFromString(ns, identifier)#
Parameters:
  • ns – int

  • identifier – str

Return type:

str

Creates a node id string from the namespace index ns and the string identifier.

See also

QOpcUaNode

static PySide6.QtOpcUa.QOpcUa.opcUaDataTypeToQOpcUaType(type)#
Parameters:

type – str

Return type:

Types

static PySide6.QtOpcUa.QOpcUa.qHash(attr)#
Parameters:

attrNodeAttribute

Return type:

int

Returns a QHash key for attr.

static PySide6.QtOpcUa.QOpcUa.statusToString(statusCode)#
Parameters:

statusCodeUaStatusCode

Return type:

str

Returns a textual representation of statusCode.

Currently, this is the name of the enum value but may be a real message in future releases.