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. |
| Async Method | read |
Provide requested (default=all) historic samples of this variable. |
| 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 sample from the remote server, not the cached local one. |
| Async Method | read |
Read the actual value from the remote server, not the cached local one. |
| Async Method | ua |
Undocumented |
| Async Method | update |
Update the cached sample 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 |
Callback when the value or its status changed. |
| 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 | sample |
Cached sample of this variable: value, status and timestamps. |
| Property | timestamp |
Timestamp of the cached sample: source timestamp, falling back to the server timestamp. |
| 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 |
| Class Variable | _data |
Undocumented |
| Instance Variable | _is |
Undocumented |
| Instance Variable | _sample |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
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[ Sample[ Any]]:
¶
Provide requested (default=all) historic samples of this variable.
| 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.
Update the cached sample from given data value or subscription callback data.
Sends value_changed only if the value or its status changed, like the OPC UA default data change trigger.
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.
Cached sample of this variable: value, status and timestamps.
Has the status BadWaitingForInitialData until the first value was read or received.