Commit 8923eaca authored by Sandor's avatar Sandor Committed by oroulet

Update client_to_prosys_crypto.py

"Coroutine 'set_security_string' is not awaited" it is an async function.
parent 61129442
......@@ -8,7 +8,7 @@ from asyncua import Client
async def main():
client = Client("opc.tcp://localhost:53530/OPCUA/SimulationServer/")
client.set_security_string("Basic256Sha256,Sign,certificate-example.der,private-key-example.pem")
await client.set_security_string("Basic256Sha256,Sign,certificate-example.der,private-key-example.pem")
client.session_timeout = 2000
async with client:
root = client.nodes.root
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment