

The purpose of the subscription is to monitor writable nodes for changes and then to write those changes to the OPC-DA server. On the first line, the SubscriptionHandler class is instantiated with n=len(writeable_variable_handles), so n is really just the number of monitored variables. Sub = server.create_subscription(100, handler).subscribe_data_change(writeable_variable_handles.values()) Handler = SubscriptionHandler(len(writeable_variable_handles)) The error points to tree = parent.add_folder(idx,folder) in my case.Īlso, to avoid any other issues, I'm just passing the following nodes to the for loop. ValueError: A LocalizedText object takes a string as argument, not a, Random

Raise ValueError("A LocalizedText object takes a string as argument, not a ".format(type(text), text)) Return node.Node(rver, _create_object(rver, parent.nodeid, nodeid, qname, ua.ObjectIds.FolderType))įile "C:\Users\Dushyant\Anaconda2\lib\site-packages\opcua\common\manage_nodes.py", line 165, in _create_objectĪttrs.Description = ua.LocalizedText(qname.Name)įile "C:\Users\Dushyant\Anaconda2\lib\site-packages\opcua\ua\uatypes.py", line 522, in initįile "C:\Users\Dushyant\Anaconda2\lib\site-packages\opcua\ua\uatypes.py", line 533, in Text Return _nodes.create_folder(self, nodeid, bname)įile "C:\Users\Dushyant\Anaconda2\lib\site-packages\opcua\common\manage_nodes.py", line 41, in create_folder Tree = parent.add_folder(idx,folder)įile "C:\Users\Dushyant\Anaconda2\lib\site-packages\opcua\common\node.py", line 654, in add_folder Now I've done the setup as asked by you, and I'm getting the following error:

Hello found, and just assumed I need to use 3.7.
