There are 3 ways to start a plugin.
- Start with the Converter
Edit opcua_plugin/modules.conf to add plugins you want to run before starting the converter.
- Start manually
The following example shows how to start a built-in pymqtt plugin.
$ cd opcua_plugin
$ python3 pymodules/loader.py pymodules/pymqtt - Use Plugin Manager to start a plugin
Firstly, run the management program to start Plugin Manager:
$ python3 pyutilities/serve/standalone.pyPlguin Manager provides a standard OPC-UA interface to manage plugins. The plugin can be controlled by calling the corresponding API interface, such as starting or stopping etc. You can use any OPC-UA client to access those interfaces such as opcua-client-gui. We also provide a Console tool that allows you to control plugins quickly. To start the built-in pymqtt plugin using the console tool:
$ python3 tests/tools/console.py
Welcome to the (opcua plugin tool) shell.
Type help or ? to list commands.
(opcua plugin tool) > When you start, you will see the above message. Then start the plugin:
(opcua plugin tool) > start_plugin MqttPlugin
OKPlease check Console for usages.
You may need to build C plugins before use. Check opcua_plugin/cmodules/README.md for details.
The following plugins are included by default in Converter for OPC UA.
pydataproc
pydb-kv
pyfile-receiver
pyfilesys
pymodbus-tcp
pymqtt
pyscpi
cmodbus-serial
Please check README.md in each plugin's directory for details.
A plugin consists of two configuration files:
-
Plugin description (.json) is a JSON formatted file including the protocol standard, description version, and user data.
-
Configururation file (.conf) for information, security and connection information.
Please refer to Plugin Configuration for details.
Please refer to Plugin Developer Guide for details.