{"id":8564,"date":"2019-09-02T11:07:53","date_gmt":"2019-09-02T14:07:53","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=8564"},"modified":"2024-04-23T10:47:55","modified_gmt":"2024-04-23T13:47:55","slug":"setting-up-and-communicating-with-nodemcu-via-mqtt-driver","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/","title":{"rendered":"Setting up and communicating with NodeMCU via MQTT driver."},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>In order to set up NodeMCU and communicate with it via driver MQTT driver, firstly you will need to develop a programming to publish the NodeMCU information in a broker. Regardless of the broker you use, the driver will require settings in the following fields to be able to work properly:<\/p>\n<ul>\n<li>Server<\/li>\n<li>Port<\/li>\n<li>User<\/li>\n<li>Password<\/li>\n<\/ul>\n<p>In this article, we will show you how to retrieve information from <a href=\"https:\/\/www.cloudmqtt.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">CloudMQTT<\/a> servers, in the cloud, as well as from <a href=\"https:\/\/mosquitto.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Eclipse Mosquitto<\/a>, local server, to communicate with NodeMCU via MQTT driver in Elipse environment.<\/p>\n<h2><strong>CloudMQTT<\/strong><\/h2>\n<p>After registering at CloudMQTT,\u00a0 you will be able to see the necessary information for the connection on the <strong>Details<\/strong> tab:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8536\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/1_3793EN.png\" alt=\"\" width=\"550\" height=\"358\" \/><\/p>\n<p><strong>NOTE<\/strong>: To confirm whether the NodeMCU is publishing properly in this broker, you can check the incoming messages on <strong>WebSocket UI <\/strong>tab.<\/p>\n<p>With this information at hand, you can set up the MQTT driver to colect the incoming messages.<\/p>\n<p>After adding the driver to the application, access the driver settings on <strong>General<\/strong> tab, and set up the user and password given at CloudMQTT broker&#8217;s <strong>Detail<\/strong> page; then, set up a name to identify the driver at <strong>Client ID<\/strong> field.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8537\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/2_3793EN.png\" alt=\"\" width=\"444\" height=\"389\" \/><\/p>\n<p><strong>NOTE<\/strong>: always use different names for each client. When a name is repeated, one will disconnect the other.<\/p>\n<p>On <strong>Setup <\/strong>tab, check <strong>Ethernet<\/strong> and add a <strong>Timeout<\/strong> compatible with the connection.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8538\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/3_3793EN.png\" alt=\"\" width=\"444\" height=\"389\" \/><\/p>\n<p>Then, access <strong>Ethernet<\/strong> tab and add the <strong>Main IP<\/strong>, which is the name of the broker, and the port used for connection.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8529\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/4_3793EN.png\" alt=\"\" width=\"444\" height=\"389\" \/><\/p>\n<p>After that, you can now set up the tags that read the incoming messages.<\/p>\n<h2><\/h2>\n<h2><strong>Eclipse Mosquito<br \/>\n<\/strong><\/h2>\n<p>To install and set up the Eclipse Mosquito, you can check up <a href=\"https:\/\/kb.elipse.com.br\/en\/aplicacao-exemplo-driver-mqtt-em-comunicacao-com-broker-mosquitto-mqtt\/\" target=\"_blank\" rel=\"noopener noreferrer\">this article<\/a> (in Portuguese only).<\/p>\n<p>After adding the driver to the application, access its settings and, on <strong>General<\/strong> tab, set up a name fro the driver (in this case,\u00a0 <strong>Client ID<\/strong>).<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8530\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/5_3793EN.png\" alt=\"\" width=\"444\" height=\"389\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>On <strong>Setup <\/strong>tab, check <strong>Ethernet<\/strong> and add a <strong>Timeout<\/strong> compatible with the connection.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8531\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/6_3793EN.png\" alt=\"\" width=\"444\" height=\"389\" \/><\/p>\n<p>Then, access <strong>Ethernet<\/strong> tab and add the <strong>Main IP<\/strong>, which is the name of the broker, and the port used for connection.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8532\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/7_3793EN.png\" alt=\"\" width=\"444\" height=\"389\" \/><\/p>\n<p>After that, you can now set up the tags that read the incoming messages.<\/p>\n<h2><\/h2>\n<h2><strong>Tags Settings<br \/>\n<\/strong><\/h2>\n<p>Setting up tags is a fairly easy task. All you need to do is set up the <strong>Item <\/strong>parameter according to the message programmed at NodeMCU. For example:<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8533\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/8_3793EN.png\" alt=\"\" width=\"315\" height=\"52\" \/><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8534\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/9_3793EN.png\" alt=\"\" width=\"303\" height=\"95\" \/><\/p>\n<p><strong>NOTE<\/strong>: N parameters are not used in this case.<\/p>\n<p>After that, you will be able to read the return from the server.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-8535\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/10_3793EN.png\" alt=\"\" width=\"550\" height=\"72\" \/><\/p>\n<h3><strong>Anexos:<\/strong><\/h3>\n<p><a href=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/03\/3793\/NodeMcuDhtMqtt.zip\">NodeMcuDhtMqtt.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In order to set up NodeMCU and communicate with it via driver MQTT driver, firstly you will need to develop a programming to publish the NodeMCU information in a&hellip;<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[977],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Settings and Communication with NodeMCU via MQTT driver.<\/title>\n<meta name=\"description\" content=\"This article shows how to develop a programming to communicate with NodeMCU via MQTT driver in an Elipse systems environment.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Settings and Communication with NodeMCU via MQTT driver.\" \/>\n<meta property=\"og:description\" content=\"This article shows how to develop a programming to communicate with NodeMCU via MQTT driver in an Elipse systems environment.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-02T14:07:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-23T13:47:55+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/1_3793EN.png\" \/>\n<meta name=\"author\" content=\"Daniel Link\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Link\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\"},\"author\":{\"name\":\"Daniel Link\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058\"},\"headline\":\"Setting up and communicating with NodeMCU via MQTT driver.\",\"datePublished\":\"2019-09-02T14:07:53+00:00\",\"dateModified\":\"2024-04-23T13:47:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\"},\"wordCount\":475,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"MQTT Driver\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\",\"name\":\"Settings and Communication with NodeMCU via MQTT driver.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-09-02T14:07:53+00:00\",\"dateModified\":\"2024-04-23T13:47:55+00:00\",\"description\":\"This article shows how to develop a programming to communicate with NodeMCU via MQTT driver in an Elipse systems environment.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up and communicating with NodeMCU via MQTT driver.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058\",\"name\":\"Daniel Link\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g\",\"caption\":\"Daniel Link\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/link\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Settings and Communication with NodeMCU via MQTT driver.","description":"This article shows how to develop a programming to communicate with NodeMCU via MQTT driver in an Elipse systems environment.","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:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/","og_locale":"en_US","og_type":"article","og_title":"Settings and Communication with NodeMCU via MQTT driver.","og_description":"This article shows how to develop a programming to communicate with NodeMCU via MQTT driver in an Elipse systems environment.","og_url":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-09-02T14:07:53+00:00","article_modified_time":"2024-04-23T13:47:55+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/1_3793EN.png"}],"author":"Daniel Link","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Daniel Link","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/"},"author":{"name":"Daniel Link","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058"},"headline":"Setting up and communicating with NodeMCU via MQTT driver.","datePublished":"2019-09-02T14:07:53+00:00","dateModified":"2024-04-23T13:47:55+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/"},"wordCount":475,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["MQTT Driver"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/","url":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/","name":"Settings and Communication with NodeMCU via MQTT driver.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-09-02T14:07:53+00:00","dateModified":"2024-04-23T13:47:55+00:00","description":"This article shows how to develop a programming to communicate with NodeMCU via MQTT driver in an Elipse systems environment.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-and-communicating-with-nodemcu-via-mqtt-driver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Setting up and communicating with NodeMCU via MQTT driver."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058","name":"Daniel Link","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g","caption":"Daniel Link"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/link\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/8564"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=8564"}],"version-history":[{"count":6,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/8564\/revisions"}],"predecessor-version":[{"id":16322,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/8564\/revisions\/16322"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=8564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=8564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=8564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}