Skip to content

ExtensionObject

Canonical path: o6.ExtensionObject

ExtensionObject

OPC UA ExtensionObject: the open-type carrier of a structured value.

A NodeId identifies the actual DataType, bundled with the encoded body. o6 handles this implicitly almost everywhere: reads return the decoded Python object from o6.ns, and writes accept that object directly.

It becomes visible where the spec itself accepts any of several structured types, such as the polymorphic detail lists of the history services, and where a client receives a value whose DataType it cannot decode.

See ExtensionObject.

Attributes

typeId property

typeId

NodeId of the carried DataType, or None when the body is empty.

body property

body

The decoded value, or the raw payload when it cannot be decoded.

Functions

__init__

__init__() -> None
__init__(body: Any | None) -> None
__init__(typeId: NodeIdLike, body: str | bytes) -> None
__init__(*args, **kwargs)