{"id":1386,"date":"2024-03-26T22:08:14","date_gmt":"2024-03-26T20:08:14","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1386"},"modified":"2024-03-26T22:09:33","modified_gmt":"2024-03-26T20:09:33","slug":"opc-ua-node-tree-to-mqtt","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1386","title":{"rendered":"OPC UA Node Tree to MQTT"},"content":{"rendered":"\n<p>With just 20 lines of configuration you can publish a OPCUA tree of values to MQTT &#8230; <\/p>\n\n\n\n<p>in this example to the HiveMQ cloud &#8230; \ud83d\udc49 with the <a href=\"http:\/\/automation-gateway.com\/\">automation-gateway.com<\/a><br><br>It also supports PLC4x connected devices\/plcs&#8230;<\/p>\n\n\n\n<p>It can also publish values to Kafka or SQL databases&#8230;<br><br>git clone https:\/\/github.com\/vogler75\/automation-gateway.git<br>cd source\\app<br>set GATEWAY_CONFIG=configs\/config-opcua-mqtt.yaml<br>gradle run<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Drivers:\n  OpcUa:\n  - Id: \"demo\"\n    Enabled: true\n    LogLevel: INFO\n    EndpointUrl: \"opc.tcp:\/\/192.168.1.3:62541\"\n    UpdateEndpointUrl: true\n    SecurityPolicyUri: http:\/\/opcfoundation.org\/UA\/SecurityPolicy#None\nLoggers:\n  Mqtt:\n    - Id: mqtt1\n      Enabled: true\n      Host: linux0.rocworks.local\n      Port: 1883\n      Ssl: false\n      Topic: Enterprise\/Site\n      Logging:\n        - Topic: opc\/demo\/path\/Objects\/Demo\/SimulationMass\/#<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>With just 20 lines of configuration you can publish a OPCUA tree of values to MQTT &#8230; in this example to the HiveMQ cloud &#8230; \ud83d\udc49 with the automation-gateway.com It also supports PLC4x connected devices\/plcs&#8230; It can also publish values to Kafka or SQL databases&#8230; git clone https:\/\/github.com\/vogler75\/automation-gateway.gitcd source\\appset GATEWAY_CONFIG=configs\/config-opcua-mqtt.yamlgradle run<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,67],"tags":[],"class_list":["post-1386","post","type-post","status-publish","format-standard","hentry","category-frankenstein","category-mqtt"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1386"}],"version-history":[{"count":2,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1386\/revisions"}],"predecessor-version":[{"id":1388,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1386\/revisions\/1388"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}