class RemoteVariable(RemoteUaObject[
Constructor: RemoteVariable(name, ua_node, server, parent)
The remote interface for a server-side UaVariable.
| Method | __init__ |
Create a new instance. Must be asynchronously initialized with init() before use. |
| Method | __str__ |
Return string representation of this variable. |
| Method | dto |
Return the data transfer object. |
| Async Method | read |
Provide requested (default=all) historic values of this variable including their timestamps of the server. |
| Async Method | read |
Read the actual raw value from the remote server. |
| Async Method | read |
Read the resolved value of this variable. Fall back to normal value if there is nothing to resolve. |
| Async Method | read |
Read the actual value from the remote server, not the cached local one. |
| Async Method | ua |
Undocumented |
| Async Method | update |
Update both value and timestamp from given data value or subscription callback data. |
| Async Method | write |
Try to directly write the given value to the server. |
| Instance Variable | children |
Undocumented |
| Instance Variable | range |
Range of this variable. |
| Instance Variable | unit |
Unit of this variable. |
| Instance Variable | value |
Undocumented |
| Property | is |
Return True if the value of this RemoteVariable is a not null Node ID. |
| Property | is |
Whether this variable is writable or read-only. |
| Property | raw |
Return the raw value as an OPC UA Variant. |
| Property | timestamp |
Timestamp of last value change. |
| Property | ua |
Internal OPC UA data type. |
| Property | ua |
Internal OPC UA value rank (-1 for Scalar, 0 for 1 or more, >=1 exact dimension). |
| Property | valid |
Valid values of this remote variable in dictionary form. |
| Property | value |
Cached Value of this variable. |
| Async Method | _init |
Undocumented |
| Method | _process |
Undocumented |
| Instance Variable | _is |
Undocumented |
| Instance Variable | _range |
Undocumented |
| Instance Variable | _timestamp |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _unit |
Undocumented |
| Instance Variable | _valid |
Undocumented |
str, ua_node: Node, server: RemoteServer, parent: RemoteVariableContainer):
¶
Create a new instance. Must be asynchronously initialized with init() before use.
datetime | None = None, end_time: datetime | None = None, num_values: int = 0, return_bounds: bool = True) -> list[ TimestampedValue]:
¶
Provide requested (default=all) historic values of this variable including their timestamps of the server.
| Parameters | |
startdatetime | None | Start timestamp in UTC for the first data point of the period if specified. |
enddatetime | None | End timestamp in UTC for the last data point of the period if specified. |
numint | Maximum number of values returned. 0 = No maximum. |
returnbool | Include the bounding values? |
| Returns | |
list[ | Undocumented |
Read the resolved value of this variable. Fall back to normal value if there is nothing to resolve.
For example, if this variable value is a node id, resolve it to the display name of the target node. If the display name is not readable, fall back to the browse name. If that is also not readable, return the last part of the string identifier of the node.
Try to directly write the given value to the server.
Might fail if variable is not writable or user has currently no rights to write the variable.
Whether this variable is writable or read-only.
Note however, that this is separate from the current access rights of the user.