opc_ua/__init__.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 18 Oct 2021 12:40:53 +0200
branchwxPython4
changeset 3337 6097bca230e8
child 3750 f62625418bff
permissions -rw-r--r--
Add OPC-UA simple synchronous client extension.

This extension uses python-opcua to growse server nodes, and generates runtime C code that use open62541.
- python-opcua must be available in python path (i.e. "import opcua" must succeed). Can be installed from pypi with "python2 -m pip install opcua --user" .
- at build time, open62541 is expected to be build in "open62541" directory, aside "beremiz" directory.
# opcua/__init__.py

from __future__ import absolute_import

from .client import OPCUAClient

# class RootClass(object):
#     XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?>
#     <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
#     </xsd:schema>
#     """
#     CTNChildrenTypes = [("OPCUAClient", OPCUAClient, "OPCUA Client")]
#