2 sys.path.insert(0,
"..")
5 from IPython
import embed
7 from opcua
import Client
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")
17 root = client.get_root_node()
18 objects = client.get_objects_node()
19 print(
"childs og objects are: ", objects.get_children())