{"id":1020,"date":"2021-02-13T00:09:17","date_gmt":"2021-02-12T22:09:17","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1020"},"modified":"2021-03-09T21:07:13","modified_gmt":"2021-03-09T19:07:13","slug":"mqtt-and-graphql-gateway-for-opc-ua","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1020","title":{"rendered":"MQTT and GraphQL Gateway for OPC UA"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here is an OPC UA gateway  with which you can access your OPC UA values via MQTT and GraphQL (HTTP). If you have an OPC UA server in your PLC, or a SCADA system with an OPC UA server, you can query data from there via MQTT and GraphQL (HTTP). In addition, the gateway can also log value changes from OPC UA nodes in an InfluxDB. The archived values can then also be queried via GraphQL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/vogler75\/opcua-gateway\">Open-source<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Runs anywhere: Linux, Windows, Mac, &#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"622\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway-1024x622.png\" alt=\"\" class=\"wp-image-1040\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway-1024x622.png 1024w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway-300x182.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway-768x467.png 768w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway-1536x934.png 1536w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Gateway-2048x1245.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Example MQTT Client: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"662\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09-1024x662.png\" alt=\"\" class=\"wp-image-1027\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09-1024x662.png 1024w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09-300x194.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09-768x497.png 768w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09-1536x993.png 1536w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.35.09-2048x1324.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Example MQTT Topics:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>opc\/unified\/node\/1\/16.687.1.0.0.0\nopc\/unified\/node:Value\/1\/16.687.1.0.0.0\nopc\/unified\/node:Pretty\/1\/16.687.1.0.0.0\nopc\/unified\/path\/Tags\/HMI_Tag_3\nopc\/oa\/node:Value\/2\/ExampleDP_Float.ExampleDP_Arg1\nopc\/oa\/node:value\/2\/ExampleDP_Float.ExampleDP_Arg1\nopc\/oa\/node:Json\/2\/ExampleDP_Float.ExampleDP_Arg1\nopc\/oa\/node:json\/2\/ExampleDP_Float.ExampleDP_Arg1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example GraphQL Queries:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"864\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10-1024x864.png\" alt=\"\" class=\"wp-image-1026\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10-1024x864.png 1024w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10-300x253.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10-768x648.png 768w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10-1536x1296.png 1536w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-09-at-07.33.10-2048x1728.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here are some Videos\/Demos:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Rocworks MQTT and GraphQL Gateway for OPC UA - GraphQL\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/QGAoshjhHDc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Rocworks MQTT and GraphQL Gateway for OPC UA - MQTT\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/3sw-6zmcNAQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Rocworks MQTT and GraphQL Gateway for OPC UA - InfluxDB\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/wAL4AlgrQBA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Here is an OPC UA gateway with which you can access your OPC UA values via MQTT and GraphQL (HTTP). If you have an OPC UA server in your PLC, or a SCADA system with an OPC UA server, you &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=1020\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1020","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1020","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=1020"}],"version-history":[{"count":16,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1020\/revisions"}],"predecessor-version":[{"id":1048,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1020\/revisions\/1048"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}