Skip to content

Commit

Permalink
make example client renew connectin every two seconds for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
oroulet committed Dec 7, 2020
1 parent e8eaa97 commit 69549de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/client_to_prosys_crypto.py
Expand Up @@ -9,11 +9,13 @@
async def main():
client = Client("opc.tcp://localhost:53530/OPCUA/SimulationServer/")
client.set_security_string("Basic256Sha256,Sign,certificate-example.der,private-key-example.pem")
client.session_timeout = 2000
async with client:
root = client.nodes.root
objects = client.nodes.objects
print("childs og objects are: ", await objects.get_children())
await asyncio.sleep(3)
while True:
print("childs og objects are: ", await objects.get_children())
await asyncio.sleep(1)



Expand Down

0 comments on commit 69549de

Please sign in to comment.