Conditions | 3 |
Total Lines | 10 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import sys |
||
9 | async def main(): |
||
10 | client = Client("opc.tcp://localhost:53530/OPCUA/SimulationServer/") |
||
11 | client.set_security_string("Basic256Sha256,Sign,certificate-example.der,private-key-example.pem") |
||
12 | client.session_timeout = 2000 |
||
13 | async with client: |
||
14 | root = client.nodes.root |
||
15 | objects = client.nodes.objects |
||
16 | while True: |
||
17 | print("childs og objects are: ", await objects.get_children()) |
||
18 | await asyncio.sleep(1) |
||
19 | |||
25 |