This is the OPC UA client for the umati Dashboard. The client subscribes to the values of one or multiple machine instances in one OPC UA Server and publish them via MQTT in a JSON encoding. All instances are read based on OPC UA ObjectType-definitions. Invalid instances (e.g. missing mandatory nodes) are skipped. Additional nodes aside from the specified nodes are also ignored to ensure a uniform output via MQTT.
This project uses cmake for building.
The following packages are necessary for building:
- git
- build-essential
- gcc
- g++
- cmake
- python3
# Clone the repository and initialize the submodules
git clone git@github.com:umati/Dashboard-OPCUA-Client.git
cd Dashboard-OPCUA-Client
git submodule update --init --recursive
# Build the depencencies
cd .github
mkdir build
cd build
cmake ..
make
# Build the Dashboard OPC UA Client
cd ../..
mkdir build
cd build
cmake ..
make
# Adjust configuration regading your setup
cp configuration.json.example configuration.json
nano configuration.json
# Start the Dashboard OPC UA Client
./DashboardOpcUaClient
# Alternatively build everything in one go:
mkdir -p install
mkdir -p build
cd build
cmake ../.github/ -DCMAKE_INSTALL_PREFIX:PATH=<PATH/TO/>Dashboard-OPCUA-Client/install/ -DCMAKE_BUILD_TYPE=Debug
cmake --build .
- ModelOpcUa An abstration for OPC UA Type Definitions and OPC UA Types (e.g. NodeId and BrowseName)
- DashboardClient Read available OPC UA types and check instances and prepare data for publishing. Defines Interfaces for the OPC UA client and the publisher.
- MachineObserver Looks for new machines and publishes a list of all online machines. Uses the interfaces defined by the DashboardClient
- MqttPublisher Paho An implementation of a publisher for MQTT using Eclipse Paho.
- OpcUaClient Implementation of an OPC UA client for the Dashboard using Unified Automation C++ SDK
- Tests Some basic test, mainly for debugging past errors.
- Util General purpose code, e.g. Encoding of machine Ids
- MachineTools ✔️
- WoodWorking ✔️
- Robotics 🌓
- Surface Technology 🌖
Unless otherwise specified, source code in this repository is licensed under the Mozilla Public License v2.0 (MPLv2).