With just 20 lines of configuration you can publish a OPCUA tree of values to MQTT …
in this example to the HiveMQ cloud … 👉 with the automation-gateway.com
It also supports PLC4x connected devices/plcs…
It can also publish values to Kafka or SQL databases…
git clone https://github.com/vogler75/automation-gateway.git
cd source\app
set GATEWAY_CONFIG=configs/config-opcua-mqtt.yaml
gradle run
Drivers:
OpcUa:
- Id: "demo"
Enabled: true
LogLevel: INFO
EndpointUrl: "opc.tcp://192.168.1.3:62541"
UpdateEndpointUrl: true
SecurityPolicyUri: http://opcfoundation.org/UA/SecurityPolicy#None
Loggers:
Mqtt:
- Id: mqtt1
Enabled: true
Host: linux0.rocworks.local
Port: 1883
Ssl: false
Topic: Enterprise/Site
Logging:
- Topic: opc/demo/path/Objects/Demo/SimulationMass/#