Commit 44a9cab7 authored by Ivan Tyagov's avatar Ivan Tyagov

OPC Ua client.

parent e0fab94e
"""
Simple OPC UA client.
"""
from opcua import Client
url = "opc.tcp://localhost:4840"
client = Client(url)
client.connect()
print("Client connected.")
while 1:
Temp = Temp.get_node("ns=2;i=3") # XXX: get from OPC UA server
temperature = Temp.get_value()
print(temperature)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment