client_to_prosys_cert.py
Go to the documentation of this file.
1 import sys
2 sys.path.insert(0, "..")
3 import logging
4 
5 from IPython import embed
6 
7 from opcua import Client
8 
9 
10 if __name__ == "__main__":
11  logging.basicConfig(level=logging.WARN)
12  client = Client("opc.tcp://localhost:53530/OPCUA/SimulationServer/")
13  client.load_client_certificate("server_cert.pem")
14  client.load_private_key("mykey.pem")
15  try:
16  client.connect()
17  root = client.get_root_node()
18  objects = client.get_objects_node()
19  print("childs og objects are: ", objects.get_children())
20 
21  embed()
22  finally:
23  client.disconnect()


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Tue Jan 19 2021 03:12:43