Merge branch 'master' of ssh://repo.hottis.de:2922/wolutator/opcua-with-python
This commit is contained in:
@ -7,7 +7,7 @@ async def test():
|
|||||||
client = Client(url='opc.tcp://192.168.254.5:4863', timeout=10.0)
|
client = Client(url='opc.tcp://192.168.254.5:4863', timeout=10.0)
|
||||||
# await client.set_security_string('')
|
# await client.set_security_string('')
|
||||||
async with client:
|
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()
|
value = await node.read_value()
|
||||||
displayName = (await node.read_display_name()).Text
|
displayName = (await node.read_display_name()).Text
|
||||||
print(f"{displayName=} = {value=}")
|
print(f"{displayName=} = {value=}")
|
||||||
|
Reference in New Issue
Block a user