module documentation
Utility functions for ua.Node.
| Class | |
Results of get_unit_and_range(). |
| Async Function | get |
Return the first child node with given display name while ignoring the namespace index. |
| Async Function | get |
Return a mapping from child nodes to qualified names. |
| Function | get |
Return a (new) Node ID in the standard hierarchical format based on given parameters. |
| Async Function | get |
Retrieve the supported OPC UA properties of the given node. |
| Async Function | get |
Return the browse name of the OPC UA type definition of the given node. |
| Async Function | read |
Read the engineering unit from the given node. |
| Async Function | read |
Read the value of the given node and transforms the NULL_NODE_ID into None. |
| Async Function | write |
Write given range to given node. |
| Async Function | write |
Write given unit to given node. |
| Async Function | write |
Write the given value to the given node. Will try to use existing variant type of the node. |
| Constant | NULL |
This node id indicates an invalid Node ID and should be treated as 'None'. |
| Async Function | _write |
Undocumented |
| Constant | _LOGGER |
Undocumented |
Return the first child node with given display name while ignoring the namespace index.
| Raises | |
BadNoMatch | If no child with given display name exists. |
def get_node_id(ua_location:
Node | ua.NodeId, *, name: QualifiedName | str, ns_idx: int | None = 1) -> ua.NodeId:
¶
Return a (new) Node ID in the standard hierarchical format based on given parameters.
| Parameters | |
uaNode | ua.NodeId | OPC UA parent node in the hierarchy |
name:QualifiedName | str | (Browse)Name of the new Node ID. |
nsint | None | (optional) OPC UA namespace index, if None, the namespace index of the location node id will be used. |
| Returns | |
ua.NodeId | Undocumented |
async def get_properties(node:
Node, *, logger: structlog.stdlib.BoundLogger | None = None) -> PropertiesResult:
¶
Retrieve the supported OPC UA properties of the given node.
Return the browse name of the OPC UA type definition of the given node.
| Parameters | |
uaNode | OPC UA node to operate on. |
default:str | Default value to return if type definition cannot be determined. |
| Returns | |
str | Undocumented |
async def read_unit(ua_node:
Node, *, engineering_unit: str = 'EngineeringUnits') -> ua.EUInformation:
¶
Read the engineering unit from the given node.
async def write_unit(ua_node:
Node, unit: Unit | str | int | ua.EUInformation, *, engineering_unit: str = 'EngineeringUnits'):
¶
Write given unit to given node.
NULL_NODE_ID =
¶
This node id indicates an invalid Node ID and should be treated as 'None'.
| Value |
|