Merge branch 'master' of ssh://repo.hottis.de:2922/wolutator/opcua-with-python

This commit is contained in:
Wolfgang Hottgenroth
2022-02-07 16:28:12 +01:00

View File

@ -7,7 +7,7 @@ async def test():
client = Client(url='opc.tcp://192.168.254.5:4863', timeout=10.0)
# await client.set_security_string('')
async with client:
node = client.get_node('ns=1;s=A201CD124/MOT_01.AV_Out#Value')
node = client.get_node('ns=1;s=t|SERVER::A201CD124/MOT_01.AV_Out#Value')
value = await node.read_value()
displayName = (await node.read_display_name()).Text
print(f"{displayName=} = {value=}")