1
0
mirror of https://github.com/FreeOpcUa/freeopcua synced 2025-10-26 19:56:54 +08:00
Files
freeopcua/python
ralf1070 3055f54581 Devel (#345)
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)
2019-10-10 14:33:08 +02:00
..
2017-05-30 21:20:57 +02:00
2017-06-22 16:28:53 -07:00
2017-05-30 21:20:57 +02:00
2014-11-10 08:25:56 -08:00
2014-11-09 11:14:47 +01:00
2019-10-10 14:33:08 +02:00
2014-11-09 11:14:47 +01:00
2015-06-04 11:35:29 +02:00
2016-11-12 10:30:00 +01:00
2014-11-09 11:14:47 +01:00
2014-11-09 11:14:47 +01:00
2014-11-10 08:25:56 -08:00
2016-12-21 17:08:53 +01:00
2014-11-09 17:15:36 +01:00

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()