client_to_prosys_cert.py
Go to the documentation of this file.
00001 import sys
00002 sys.path.insert(0, "..")
00003 import logging
00004 
00005 from IPython import embed
00006 
00007 from opcua import Client
00008 
00009 
00010 if __name__ == "__main__":
00011     logging.basicConfig(level=logging.WARN)
00012     client = Client("opc.tcp://localhost:53530/OPCUA/SimulationServer/")
00013     client.load_client_certificate("server_cert.pem")
00014     client.load_private_key("mykey.pem")
00015     try:
00016         client.connect()
00017         root = client.get_root_node()
00018         objects = client.get_objects_node()
00019         print("childs og objects are: ", objects.get_children())
00020 
00021         embed()
00022     finally:
00023         client.disconnect()


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Sat Jun 8 2019 18:26:23