{"id":496,"date":"2019-11-20T15:14:41","date_gmt":"2019-11-20T15:14:41","guid":{"rendered":"http:\/\/opcconnect.integrationobjects.com\/?p=496"},"modified":"2026-02-26T10:09:03","modified_gmt":"2026-02-26T10:09:03","slug":"use-opc-client-mqtt-send-opc-da-data-azure-iot-hub","status":"publish","type":"post","link":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/","title":{"rendered":"Tutorial instructions: how to send OPC DA data to Azure IoT Hub"},"content":{"rendered":"\r\n<p>The <a href=\"https:\/\/integrationobjects.com\/opc-products\/opc-client\/opc-client-for-mqtt\">OPC Client for MQTT<\/a> collects <strong>OPC data <\/strong>in real-time and publish them into MQTT brokers. You can use it to send the collected data to Azure IoT Hub as well. This tutorial provides detailed steps how you achieve this configuration.<\/p>\r\n<p>The main steps are as follows:<\/p>\r\n<p>1. Create an Azure IoT Hub in the Azure Portal. If you do not yet have access to the Azure portal, you can create a free Azure account <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\" target=\"_blank\" rel=\"noopener\">here<\/a><\/span>.<br \/>2. Extract the Azure IoT Hub connections data.<br \/>3. Configure the <a href=\"https:\/\/integrationobjects.com\/opc-products\/opc-client\/opc-client-for-mqtt\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #0000ff;\">OPC Client for MQTT<\/span><\/a> to connect to your configured IoT Hub.<\/p>\r\n\r\n\r\n\r\n<h2>Steps to collect and send OPC DA data to Azure IoT Hub<\/h2>\r\n\r\n\r\n\r\n<h3>1. Create an Azure IoT Hub<\/h3>\r\n<p><br \/>a. Login to the Azure Portal with your account. <br \/>b. Create a new resource with the type \u201cIoT Hub\u201d.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"442\" class=\"wp-image-497\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/1.png\" alt=\"Create an Azure IoT Hub\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/1.png 763w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/1-300x174.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>c. Choose a resource group, name the IoT Hub and then finalize your configuration after review:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"804\" class=\"wp-image-498\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/2-1024x804.png\" alt=\"Azure IoT Hub creation\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/2-1024x804.png 1024w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/2-300x236.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/2-768x603.png 768w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/2.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>New Azure IoT Hub<\/strong><\/p>\r\n\r\n\r\n\r\n<h3>2. Extract Azure IoT Hub Connection Data<\/h3>\r\n<p><br \/>a. Select the newly created IoT Hub under \u201cAll Resources\u201d and select the \u201c<strong>Shared Access Policies<\/strong>\u201d(1) and then choose \u201c<strong>iothubowner<\/strong>\u201d(2)<br \/>b. Copy the \u201c<strong>Connection string \u2013 Primary key<\/strong>\u201d(3) from the \u201c<strong>iothubowner<\/strong>\u201d policy:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"415\" class=\"wp-image-499\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/3-1024x415.png\" alt=\"Azure connection string \u2013 Primary key\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/3-1024x415.png 1024w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/3-300x122.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/3-768x312.png 768w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/3.png 1378w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Connection string \u2013 Primary Key<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Then, we will extract The MQTT connection parameters from this connection string using the \u201c<strong>DeviceExplorer<\/strong>\u201d that you can download from <a href=\"https:\/\/github.com\/Azure\/azure-iot-sdk-csharp\/releases\/download\/2019-1-4\/SetupDeviceExplorer.msi\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #0000ff;\">here<\/span><\/a>.<\/p>\r\n\r\n\r\n\r\n<p>c. Open the DeviceExplorer tool and go to the configuration tab. Paste the copied connection string- Primay key connection string (1) , enter the right hostname(2) and then click the \u201c<strong>Update<\/strong>\u201d button (3):<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"681\" class=\"wp-image-500\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/4.png\" alt=\"IoT Hub Device Explorer\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/4.png 785w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/4-300x260.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/4-768x666.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>IoT Hub Device Explorer<\/strong><\/p>\r\n\r\n\r\n\r\n<p>d. Go to Management Tab (1), select \u201cCreate\u201d (2), choose a Device name (3) and then click the \u201c<strong>Create<\/strong>\u201d button (4):<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"682\" class=\"wp-image-501\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/5.png\" alt=\"Create IoT Hub Device\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/5.png 788w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/5-300x260.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/5-768x665.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Create IoT Hub Device<\/strong><\/p>\r\n\r\n\r\n\r\n<p>e. Click the \u201c<strong>SAS Token<\/strong>\u201d button,\u00a0 select the newly created Device (1) and set a life time period (2). Then, click the \u201c<strong>Generate<\/strong>\u201d button (3) in order to copy out the required password for the client (4):<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"413\" class=\"wp-image-502\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/6.png\" alt=\"IoT Hub SAS Token\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/6.png 485w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/6-300x255.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>IoT Hub SAS Token<\/strong><\/p>\r\n\r\n\r\n\r\n<h3>3. Configure the OPC Client for MQTT for connecting the IoT Hub<\/h3>\r\n\r\n\r\n\r\n<p>a. Once you have the OPC Client for MQTT installed and you opened its graphical user interface, you will need to connect to your <a href=\"https:\/\/integrationobjects.com\/sioth-opc\/sioth-opc-servers\/\" target=\"_blank\" rel=\"noreferrer noopener\">OPC Server<\/a> and the <strong>OPC DA<\/strong> tags:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Click the Connect button in the OPC Server menu to connect to local and remote <strong>OPC DA<\/strong> servers.<\/li>\r\n<li>Right click on the added server node and select Add Group from the displayed menu.<\/li>\r\n<li>Right click on the selected OPC Group node and select Add Items from the displayed menu. The Add Items window will be prompted as illustrated in the figure below:<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"888\" height=\"615\" class=\"wp-image-503\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/7.png\" alt=\"Add Items Dialog\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/7.png 888w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/7-300x208.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/7-768x532.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Add Items Dialog<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Drag and drop items from the items tree in the left side to the grid in the right side and click the <strong>Apply<\/strong> button.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>b. Add New MQTT Agent<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Click the <strong>New Agent<\/strong> button located in the MQTT Client menu. The following wizard will be prompted:<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"596\" height=\"493\" class=\"wp-image-504\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/8.png\" alt=\"Add MQTT Agent\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/8.png 596w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/8-300x248.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Add MQTT Agent<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>The configuration parameters to be entered are detailed below:<br \/>&#8211; <strong>Address (1) :<\/strong> The URL or the IP address of the MQTT Broker which is the IoT Hub Azure hostname connection.<br \/>&#8211; <strong>Port (2) :<\/strong> MQTT Broker port, \u201c<strong>8883<\/strong>\u201d.<br \/>&#8211; <strong>Topic(3)<\/strong> : Messages will be published to that Topic. For data sent to the cloud you can use \u201c<strong>devices\/<span style=\"color: #ff0000;\">{device-id}<\/span>\/messages\/events\/<\/strong>\u201d<br \/>&#8211; <strong>QoS (4) :<\/strong> The Quality of Service that will be used to publish data: \u201c 1 (At Least Once)\u201d<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"462\" class=\"wp-image-505\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/9-1024x462.png\" alt=\"Parameter Description\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/9-1024x462.png 1024w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/9-300x135.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/9-768x347.png 768w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/9.png 1074w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Broker and Publish Parameters Description<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Right click on the new configured Agent and select <strong>Advanced Settings -&gt; Authentication and TLS<\/strong> as illustrated below:<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"466\" height=\"368\" class=\"wp-image-506\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/10.png\" alt=\"Authentication and TLS\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/10.png 466w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/10-300x237.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Authentication and TLS<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>To configure the agent authentication and TLS, enter the following parameters:<br \/><strong>Client ID(1):<\/strong> The name of your DeviceID.<br \/><strong>Username(2):<\/strong> Username to connect to the MQTT broker. It should as follows: \u201dHostname\u201d\/\u201dDeviseID\u201d<br \/><strong>Password (3):\u00a0<\/strong>Password to connect to the MQTT broker. It should as follows:<br \/>\u201cSharedAccessSignature sr=IoTHubNewTestOPCUAIoTBroker.azure-devices.net%2Fdevices%2FTestDevice&amp;sig=qYMZUYaG9aGeZIz6vTZRZ5B%2BM%2BxHSgGClJWYL5X%2FQME%3D&amp;se=1574089012\u201d<br \/><strong>Use TLS\/SSL(4)<\/strong> : Check this option to use a certificate for the communication with the MQTT broker.<br \/><strong>Protocol:<\/strong> The protocol that will be used to secure the channel between the MQTT Agent and the MQTT Broker. It should be <strong>TLSv1.0,<\/strong><br \/><strong> TLSv1.1 or TLSv1.2<\/strong> for the connection with Azure IoT Hub .<br \/><strong>Certificate Path (5): <\/strong>The certificate file path. Click Browse button to choose the file location.<br \/>This certificate should be the one that Azure IoT Hub uses to secure the connection, which is the DigiCert Baltimore Root Certificate. You can download it from <a href=\"https:\/\/www.digicert.com\/digicert-root-certificates.htm\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #0000ff;\">here<\/span><\/a>.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"374\" class=\"wp-image-507\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/11-1024x374.png\" alt=\"Authentication and TLS configuration\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/11-1024x374.png 1024w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/11-300x109.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/11-768x280.png 768w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/11.png 1058w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\"><strong>Authentication and TLS Configuration<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Click apply and <strong>Start<\/strong> the Agent.<\/li>\r\n<li style=\"text-align: left;\">Verify that your data are transferred to Azure IoT Hub from the \u201cDeviceExplorer\u201d, as illustrated below:<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"677\" class=\"wp-image-508\" src=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/12.png\" alt=\"DeviceExplorer\" srcset=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/12.png 783w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/12-300x259.png 300w, https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/12-768x664.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>For more information about Integration Objects&#8217; OPC Client for MQTT:\u00a0<a href=\"https:\/\/integrationobjects.com\/opc-products\/opc-client\/opc-client-for-mqtt\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #0000ff;\">https:\/\/integrationobjects.com\/opc-products\/opc-client\/opc-client-for-mqtt\/<\/span><\/a><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>The OPC Client for MQTT collects OPC data in real-time and publish them into MQTT brokers. You can use it to send the collected data<\/p>\n","protected":false},"author":1,"featured_media":1683,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[174],"class_list":["post-496","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opc-classic","tag-opc-client-for-mqtt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Send OPC DA data to Azure IoT Hub using OPC Client for MQTT<\/title>\n<meta name=\"description\" content=\"Here is a step by step tutorial on how you can easily send OPC DA data to Azure IoT Hub using Integration Objects&#039; OPC Client for MQTT.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send OPC DA data to Azure IoT Hub using OPC Client for MQTT\" \/>\n<meta property=\"og:description\" content=\"Here is a step by step tutorial on how you can easily send OPC DA data to Azure IoT Hub using Integration Objects&#039; OPC Client for MQTT.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/\" \/>\n<meta property=\"og:site_name\" content=\"OPC Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Integration.Objects.OPC\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-20T15:14:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:09:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/Tutorial-instructions_-How-to-Send-OPC-DA-Data-to-Azure-IoT-Hub.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"OPCBlogAdmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@IntegObjects\" \/>\n<meta name=\"twitter:site\" content=\"@IntegObjects\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"OPCBlogAdmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Send OPC DA data to Azure IoT Hub using OPC Client for MQTT","description":"Here is a step by step tutorial on how you can easily send OPC DA data to Azure IoT Hub using Integration Objects' OPC Client for MQTT.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/","og_locale":"en_US","og_type":"article","og_title":"Send OPC DA data to Azure IoT Hub using OPC Client for MQTT","og_description":"Here is a step by step tutorial on how you can easily send OPC DA data to Azure IoT Hub using Integration Objects' OPC Client for MQTT.","og_url":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/","og_site_name":"OPC Blog","article_publisher":"https:\/\/www.facebook.com\/Integration.Objects.OPC\/","article_published_time":"2019-11-20T15:14:41+00:00","article_modified_time":"2026-02-26T10:09:03+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/Tutorial-instructions_-How-to-Send-OPC-DA-Data-to-Azure-IoT-Hub.jpg","type":"image\/jpeg"}],"author":"OPCBlogAdmin","twitter_card":"summary_large_image","twitter_creator":"@IntegObjects","twitter_site":"@IntegObjects","twitter_misc":{"Written by":"OPCBlogAdmin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/","url":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/","name":"Send OPC DA data to Azure IoT Hub using OPC Client for MQTT","isPartOf":{"@id":"https:\/\/integrationobjects.com\/blog-\/#website"},"primaryImageOfPage":{"@id":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/#primaryimage"},"image":{"@id":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/#primaryimage"},"thumbnailUrl":"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/Tutorial-instructions_-How-to-Send-OPC-DA-Data-to-Azure-IoT-Hub.jpg","datePublished":"2019-11-20T15:14:41+00:00","dateModified":"2026-02-26T10:09:03+00:00","author":{"@id":"https:\/\/integrationobjects.com\/blog-\/#\/schema\/person\/6efbaf488a07e418b93ff77f00af386b"},"description":"Here is a step by step tutorial on how you can easily send OPC DA data to Azure IoT Hub using Integration Objects' OPC Client for MQTT.","breadcrumb":{"@id":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/#primaryimage","url":"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/Tutorial-instructions_-How-to-Send-OPC-DA-Data-to-Azure-IoT-Hub.jpg","contentUrl":"https:\/\/integrationobjects.com\/blog\/wp-content\/uploads\/2019\/11\/Tutorial-instructions_-How-to-Send-OPC-DA-Data-to-Azure-IoT-Hub.jpg","width":1920,"height":1080,"caption":"Azure IoT Hub"},{"@type":"BreadcrumbList","@id":"https:\/\/integrationobjects.com\/blog\/use-opc-client-mqtt-send-opc-da-data-azure-iot-hub\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/integrationobjects.com\/blog-\/"},{"@type":"ListItem","position":2,"name":"Tutorial instructions: how to send OPC DA data to Azure IoT Hub"}]},{"@type":"WebSite","@id":"https:\/\/integrationobjects.com\/blog-\/#website","url":"https:\/\/integrationobjects.com\/blog-\/","name":"OPC Blog","description":"OPC and related technologies news from Integration Objects","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/integrationobjects.com\/blog-\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/integrationobjects.com\/blog-\/#\/schema\/person\/6efbaf488a07e418b93ff77f00af386b","name":"OPCBlogAdmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/integrationobjects.com\/blog-\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f2d787c3c48eb147d5b4d0c9d05c6f35a5946c7dc40af2eedbe64030e99ea299?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f2d787c3c48eb147d5b4d0c9d05c6f35a5946c7dc40af2eedbe64030e99ea299?s=96&d=mm&r=g","caption":"OPCBlogAdmin"}}]}},"_links":{"self":[{"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":12,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":1682,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/posts\/496\/revisions\/1682"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/media\/1683"}],"wp:attachment":[{"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/integrationobjects.com\/blog\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}