{"id":345,"date":"2021-03-14T23:17:40","date_gmt":"2021-03-14T23:17:40","guid":{"rendered":"https:\/\/www.sydspost.nl\/?p=345"},"modified":"2025-01-26T21:07:28","modified_gmt":"2025-01-26T21:07:28","slug":"mqtt-broker","status":"publish","type":"post","link":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/","title":{"rendered":"MQTT broker"},"content":{"rendered":"<p>In deze tutorial gaan we de Mosquitto (MQTT) broker installeren op de Raspberry Pi<\/p>\n<p>De MQTT \u201cbroker\u201d is primair verantwoordelijk voor het ontvangen van alle berichten, het filteren van de berichten, beslissen wie erin ge\u00efnteresseerd is en vervolgens het bericht publiceren naar alle ingeschreven klanten.<\/p>\n<p>MQTT (Message Queue Telemetry Transport) is gebaseerd op TCP\/IP en probeert de problemen van onbetrouwbare verbindingen op te lossen met een centrale bemiddelaar: de MQTT-broker.<\/p>\n<h2><strong>Installatie van de software<\/strong><\/h2>\n<p>Als eerste gaan we de juist software installeren met onderstaande commando\u2019s:<\/p>\n<pre>pi@raspberry:~ $ <strong>sudo apt update<\/strong>\npi@raspberry:~ $ <strong>sudo apt install -y mosquitto mosquitto-clients<\/strong><\/pre>\n<p>Je moet Y typen en op Enter drukken om de installatie te bevestigen. Voer vervolgens de volgende stappen uit om Mosquitto automatisch te laten opstarten bij het opstarten:<strong><br \/>\n<\/strong><\/p>\n<pre>pi@raspberry:~ $ <strong>sudo systemctl enable mosquitto.service<\/strong><\/pre>\n<h2>Testen van de installatie<\/h2>\n<p>Nadat de installatie gaan we testen of de installatie succesvol is uitgevoerd. Dit kan simpel met onderstaand commando:<\/p>\n<pre>pi@raspberry:~ $ <strong>mosquitto -v<\/strong><\/pre>\n<p>Dit geeft de Mosquitto-versie die momenteel in uw Raspberry Pi wordt uitgevoerd. Het moet 1.4.X of hoger zijn.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-226 size-full\" src=\"https:\/\/raspberrypi.tilburgs.com\/wp-content\/uploads\/2019\/09\/Mosquitto-v.png\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" srcset=\"https:\/\/raspberrypi.tilburgs.com\/wp-content\/uploads\/2019\/09\/Mosquitto-v.png 745w, https:\/\/raspberrypi.tilburgs.com\/wp-content\/uploads\/2019\/09\/Mosquitto-v-300x56.png 300w\" alt=\"\" width=\"745\" height=\"140\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In deze tutorial gaan we de Mosquitto (MQTT) broker installeren op de Raspberry Pi De MQTT \u201cbroker\u201d is primair verantwoordelijk<\/p>\n<p><a href=\"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/\" class=\"more-link\">Verder lezen<span class=\"screen-reader-text\">MQTT broker<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43],"tags":[44,25,45],"class_list":["post-345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotica-software","tag-mosquitto","tag-mqtt","tag-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MQTT broker - Mijn domotica projecten<\/title>\n<meta name=\"description\" content=\"Installatie van de Mosquitto (MQTT) broker op de Raspberry pi\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQTT broker - Mijn domotica projecten\" \/>\n<meta property=\"og:description\" content=\"Installatie van de Mosquitto (MQTT) broker op de Raspberry pi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/\" \/>\n<meta property=\"og:site_name\" content=\"Mijn domotica projecten\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/syds.post\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-14T23:17:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-26T21:07:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png\" \/>\n\t<meta property=\"og:image:width\" content=\"354\" \/>\n\t<meta property=\"og:image:height\" content=\"354\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Syds\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"Syds\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/\"},\"author\":{\"name\":\"Syds\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/person\\\/429f92898f98d9c4e01b8fad60975b21\"},\"headline\":\"MQTT broker\",\"datePublished\":\"2021-03-14T23:17:40+00:00\",\"dateModified\":\"2025-01-26T21:07:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/\"},\"wordCount\":158,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/mosquitto-mono.png\",\"keywords\":[\"Mosquitto\",\"MQTT\",\"Raspberry Pi\"],\"articleSection\":[\"Software\"],\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/\",\"name\":\"MQTT broker - Mijn domotica projecten\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/mosquitto-mono.png\",\"datePublished\":\"2021-03-14T23:17:40+00:00\",\"dateModified\":\"2025-01-26T21:07:28+00:00\",\"description\":\"Installatie van de Mosquitto (MQTT) broker op de Raspberry pi\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/mosquitto-mono.png\",\"contentUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/mosquitto-mono.png\",\"width\":354,\"height\":354},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/14\\\/mqtt-broker\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sydspost.nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MQTT broker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#website\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/\",\"name\":\"Mijn domotica projecten\",\"description\":\"met Domoticz\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sydspost.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#organization\",\"name\":\"Mijn domotica projecten\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Domoticz-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Domoticz-logo.png\",\"width\":256,\"height\":256,\"caption\":\"Mijn domotica projecten\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/person\\\/429f92898f98d9c4e01b8fad60975b21\",\"name\":\"Syds\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g\",\"caption\":\"Syds\"},\"sameAs\":[\"https:\\\/\\\/www.sydspost.nl\",\"https:\\\/\\\/www.facebook.com\\\/syds.post\\\/\"],\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/author\\\/wp_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MQTT broker - Mijn domotica projecten","description":"Installatie van de Mosquitto (MQTT) broker op de Raspberry pi","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:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/","og_locale":"nl_NL","og_type":"article","og_title":"MQTT broker - Mijn domotica projecten","og_description":"Installatie van de Mosquitto (MQTT) broker op de Raspberry pi","og_url":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/","og_site_name":"Mijn domotica projecten","article_author":"https:\/\/www.facebook.com\/syds.post\/","article_published_time":"2021-03-14T23:17:40+00:00","article_modified_time":"2025-01-26T21:07:28+00:00","og_image":[{"width":354,"height":354,"url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png","type":"image\/png"}],"author":"Syds","twitter_card":"summary_large_image","twitter_misc":{"Geschreven door":"Syds","Geschatte leestijd":"2 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#article","isPartOf":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/"},"author":{"name":"Syds","@id":"https:\/\/www.sydspost.nl\/#\/schema\/person\/429f92898f98d9c4e01b8fad60975b21"},"headline":"MQTT broker","datePublished":"2021-03-14T23:17:40+00:00","dateModified":"2025-01-26T21:07:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/"},"wordCount":158,"commentCount":0,"publisher":{"@id":"https:\/\/www.sydspost.nl\/#organization"},"image":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png","keywords":["Mosquitto","MQTT","Raspberry Pi"],"articleSection":["Software"],"inLanguage":"nl-NL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/","url":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/","name":"MQTT broker - Mijn domotica projecten","isPartOf":{"@id":"https:\/\/www.sydspost.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#primaryimage"},"image":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png","datePublished":"2021-03-14T23:17:40+00:00","dateModified":"2025-01-26T21:07:28+00:00","description":"Installatie van de Mosquitto (MQTT) broker op de Raspberry pi","breadcrumb":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#primaryimage","url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png","contentUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png","width":354,"height":354},{"@type":"BreadcrumbList","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/14\/mqtt-broker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sydspost.nl\/"},{"@type":"ListItem","position":2,"name":"MQTT broker"}]},{"@type":"WebSite","@id":"https:\/\/www.sydspost.nl\/#website","url":"https:\/\/www.sydspost.nl\/","name":"Mijn domotica projecten","description":"met Domoticz","publisher":{"@id":"https:\/\/www.sydspost.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sydspost.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/www.sydspost.nl\/#organization","name":"Mijn domotica projecten","url":"https:\/\/www.sydspost.nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.sydspost.nl\/#\/schema\/logo\/image\/","url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2020\/12\/Domoticz-logo.png","contentUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2020\/12\/Domoticz-logo.png","width":256,"height":256,"caption":"Mijn domotica projecten"},"image":{"@id":"https:\/\/www.sydspost.nl\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.sydspost.nl\/#\/schema\/person\/429f92898f98d9c4e01b8fad60975b21","name":"Syds","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/secure.gravatar.com\/avatar\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g","caption":"Syds"},"sameAs":["https:\/\/www.sydspost.nl","https:\/\/www.facebook.com\/syds.post\/"],"url":"https:\/\/www.sydspost.nl\/index.php\/author\/wp_admin\/"}]}},"modified_by":"Syds","jetpack_featured_media_url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/mosquitto-mono.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":2,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":3902,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions\/3902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/media\/347"}],"wp:attachment":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}