Skip to content
Snippets Groups Projects
Commit aa5c52c4 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'L2SS-416-create-opcua-device' into L2SS-412-replace-opcua-by-asyncua

parents a883a992 545c04cc
No related branches found
No related tags found
1 merge request!142L2SS-412: Use asyncio for opcua and other clients
...@@ -77,7 +77,7 @@ class opcua_device(hardware_device): ...@@ -77,7 +77,7 @@ class opcua_device(hardware_device):
# Attributes # Attributes
# ---------- # ----------
opcua_missing_attributes_R = attribute(max_dim_x=128, dtype=(str,), fget=lambda self: self.opcua_missing_attributes, doc="OPC-UA attributes not present on the server") opcua_missing_attributes_R = attribute(max_dim_x=128, dtype=(str,), fget=lambda self: numpy.array(self.opcua_missing_attributes, dtype=str), doc="OPC-UA attributes not present on the server")
# -------- # --------
# overloaded functions # overloaded functions
...@@ -117,6 +117,6 @@ class opcua_device(hardware_device): ...@@ -117,6 +117,6 @@ class opcua_device(hardware_device):
except Exception as e: except Exception as e:
# use the pass function instead of setting read/write fails # use the pass function instead of setting read/write fails
i.set_pass_func() i.set_pass_func()
self.opcua_missing_attributes.append(i.name) self.opcua_missing_attributes.append(",".join(i.comms_annotation))
self.warn_stream("error while setting the attribute {} read/write function. {}".format(i, e)) self.warn_stream("error while setting the attribute {} read/write function. {}".format(i, e))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment