1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00

Update client_to_kepware.py

This commit is contained in:
Andreas Heine
2020-06-29 21:19:41 +02:00
committed by GitHub
parent 64cb7a02cb
commit 4f83bad85f

View File

@@ -25,9 +25,9 @@ async def main():
async with Client(url=url) as client:
print("Root children are", await client.nodes.root.get_children())
tag1 = await client.get_node("ns=2;s=Channel1.Device1.Tag1")
tag1 = client.get_node("ns=2;s=Channel1.Device1.Tag1")
print(f"tag1 is: {tag1} with value {await tag1.read_value()} ")
tag2 = await client.get_node("ns=2;s=Channel1.Device1.Tag2")
tag2 = client.get_node("ns=2;s=Channel1.Device1.Tag2")
print(f"tag2 is: {tag2} with value {await tag2.read_value()} ")
handler = SubHandler()