1
0
mirror of https://github.com/FreeOpcUa/freeopcua synced 2025-10-26 19:56:54 +08:00
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
..
examples Consistent C++ styling (#243) 2017-05-30 21:20:57 +02:00
src Use std::shared_ptr in python wrapper 2017-06-22 16:28:53 -07:00
tests Consistent C++ styling (#243) 2017-05-30 21:20:57 +02:00
AUTHORS - use #pragma once for include 2014-11-10 08:25:56 -08:00
ChangeLog preparing merge 2014-11-09 11:14:47 +01:00
CMakeLists.txt Devel (#345) 2019-10-10 14:33:08 +02:00
configure.ac Added ability enable/disable python bindings in autotools. 2014-11-16 22:20:59 +03:00
COPYING preparing merge 2014-11-09 11:14:47 +01:00
LICENSE python/LICENSE file GPL --> LGPL 2015-06-04 11:35:29 +02:00
Makefile.am integrate and use autogenerated enums 2015-04-06 10:02:53 +02:00
MANIFEST.in Fix setup.py for bdist_rpm 2016-11-12 10:30:00 +01:00
NEWS preparing merge 2014-11-09 11:14:47 +01:00
README preparing merge 2014-11-09 11:14:47 +01:00
README.md - use #pragma once for include 2014-11-10 08:25:56 -08:00
setup.py Fix setup.py for python < 2.7 2016-12-21 17:08:53 +01:00
TODO merge 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()