mirror of
https://github.com/FreeOpcUa/freeopcua
synced 2025-10-26 19:56:54 +08:00
Several requested changes of pull requests revised, compatibility
* make it compile with gcc < 4.9 again
* compile with newer boost versions (vmatare)
* cmake update for python (vmatare)
* compile flags (maartendemunck)
* strict ordering of sequence numbers (martinhaefner)
* passwort encryption strategy (martinhaefner)
* close sockets (DennisLemmers)
* GUID format (DennisLemmers)
* use ${CMAKE_INSTALL_LIBDIR} for install (morxa)
opcua-python
OPC-UA Python bindings
Writting an OPC-UA server is as simple as:
s = opcua.Server()
s.set_endpoint("opc.tcp://192.168.56.1:4841")
s.start()
try:
objects = s.get_objects_node()
m = objects.add_folder("2:MyFolder")
v = m.add_variable("2:MyVariable", 3)
count = 0
while True;
count += 1
v.set_value(count)
time.sleep(1);
finally:
s.stop()