help="Comma separated browse path to the node starting at nodeid (for example: 3:Mybject,3:MyVariable)",
help="Comma separated browse path to the node starting at NODE (for example: 3:Mybject,3:MyVariable)",
default='',
metavar="BROWSEPATH")
parser.add_argument("-i",
...
...
@@ -372,10 +368,7 @@ def uasubscribe():
sub.subscribe_data_change(node)
else:
sub.subscribe_events(node)
glbs=globals()
glbs.update(locals())
shell=code.InteractiveConsole(vars)
shell.interact()
embed()
finally:
client.disconnect()
sys.exit(0)
...
...
@@ -435,6 +428,38 @@ def endpoint_to_strings(ep):
returnresult
defuaclient():
parser=argparse.ArgumentParser(description="Connect to server and start python shell. root and objects nodes are available. Node specificed in command line is available as mynode variable")
parser=argparse.ArgumentParser(description="Run an example OPC-UA server. By importing xml definition and using uawrite, it is even possible to expose real data using this server")