eta_nexus.util.type_utils module
Utilities for type checking and validation across different connection types.
- eta_nexus.util.type_utils.check_type_mismatch(node_dtype: type | Callable[..., Any] | None, opcua_variant_type: ua.VariantType, node_name: str, logger: Logger) None[source]
Check if the configured dtype matches the OPC UA server’s data type and log a warning if not.
- Parameters:
node_dtype – The configured dtype of the node.
opcua_variant_type – The actual OPC UA VariantType from the server.
node_name – The name of the node (for logging).
logger – Logger instance to use.