
| Current Path : /proc/thread-self/root/home/ift/52_procpy/dataninja/test/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/home/ift/52_procpy/dataninja/test/opcua_client.py |
from opcua import ua, Client
import time
client = Client("opc.tcp://0.0.0.0:4842/freeopcua/regler/")
while(0 == 0):
try:
client.connect()
break
except:
time.sleep(0.1)
root = client.get_root_node()
obj = root.get_child(["0:Objects"])
a = obj.get_child(["0:regler","0:motoren"])
b = a.get_child(["0:a"])
# c = root.get_children()[0].get_display_name().to_string()
while (0 == 0):
print(b.get_value())
time.sleep(0.23487946)