This commit is contained in:
Wolfgang Hottgenroth
2022-02-03 14:45:29 +01:00
commit 24c09c0ed8
2 changed files with 233 additions and 0 deletions

12
snippets/test2.py Normal file
View File

@ -0,0 +1,12 @@
import asyncio
from asyncua import Client
async def test():
client = Client(url='opc.tcp://172.16.3.60:4840', timeout=1.0)
# await client.set_security_string('')
async with client:
node = client.get_node('i=345')
value = await node.read_value()
print(f"{node=}, {value=}")
asyncio.run(test())