<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Imam Syuhada on Medium]]></title>
        <description><![CDATA[Stories by Imam Syuhada on Medium]]></description>
        <link>https://medium.com/@mamunsyuhada?source=rss-2e241368afad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4j7hFLMGeQInjegqN0kP7A.jpeg</url>
            <title>Stories by Imam Syuhada on Medium</title>
            <link>https://medium.com/@mamunsyuhada?source=rss-2e241368afad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:02:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mamunsyuhada/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Build MessageBroker dengan Mosquitto]]></title>
            <link>https://medium.com/@mamunsyuhada/build-messagebroker-dengan-mosquitto-9318ba09ed45?source=rss-2e241368afad------2</link>
            <guid isPermaLink="false">https://medium.com/p/9318ba09ed45</guid>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Imam Syuhada]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 20:27:25 GMT</pubDate>
            <atom:updated>2020-06-22T17:30:00.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Dokumen" src="https://cdn-images-1.medium.com/max/1024/1*WFbT9Ks-J2-B8iwetZ5BdQ.png" /></figure><h3>Requirements</h3><ol><li>Terminal (linux/unix) atau Command Prompt (windows)</li><li>MQTT Client, rekomendasi <a href="https://mqtt-explorer.com/">MQTT Explorer</a> (GUI)</li><li>Docker (optional)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*-uRMyzausUHDp-zz54egvQ.png" /><figcaption>docker logo (<a href="https://webitfactory.io/wp-content/uploads/2019/11/tech-docker.jpg">sumber</a>)</figcaption></figure><h3>Installation</h3><h4>Mac OS</h4><p>Gunakan <a href="https://brew.sh/">homebrew</a> untuk instalasi, jika belum terinstal <a href="https://brew.sh/">howbrew</a> pada perangkat MacOS buka terminal.app anda dan eksekusi perintah di bawah ini</p><pre>ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</pre><p>Jika sudah terinstall homebrew, selanjutnya download dan install <a href="https://mosquitto.org/download/">Mosquitto</a></p><pre>brew install mosquitto #instalasi mosquitto</pre><p><strong>Ubuntu Debian/Raspbian</strong></p><p>Lakukan perintah berikut pada terminal</p><pre>sudo apt-get update<br>sudo apt-get install mosquitto #install mosquitto</pre><h4>Docker (optional)</h4><p>Jika di OS sudah terinstall <a href="https://www.docker.com/products/docker-desktop">docker</a>, maka pull images mosquitto yang ada di <a href="https://hub.docker.com/_/eclipse-mosquitto/">dockerhub</a> dengan perintah</p><pre>docker pull eclipse-mosquitto # ambil images docker dari dockerhub<br>docker images # melihat docker images yang tersimpan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*q7g_0F7QtSaqgaea8938BA.gif" /><figcaption>pull mosquitto images (sumber pribadi)</figcaption></figure><h3>Run Mosquitto</h3><p>Untuk menjalankan broker Mosquitto lakukan perintah pada terminal</p><h4>MacOS</h4><pre>brew services #cek semua service yang berjalan<br>brew services mosquitto #menjalankan service mosquitto</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*jq01nxwoF5M922yozGl1jA.gif" /><figcaption>start mosquitto service (sumber pribadi)</figcaption></figure><h4>Ubuntu Debian/Raspbian</h4><pre>sudo systemctl restart mosquitto #menjalankan ulang mosquitto<br>sudo systemctl status mosquitto #check mosquitto service </pre><h4>Docker (optional)</h4><pre>docker start mosquitto # menjalankan mosquitto<br>docker ps # melihat container yang sedang berjalan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*e1XV443dWRQIxqbF1w47CQ.gif" /><figcaption>menjalankan mosquitto melalui docker (sumber pribadi)</figcaption></figure><h3>Testing Menggunakan <a href="https://mqtt-explorer.com/">MQTT Explorer</a></h3><p>MQTT Explore ini sudah mendukung MacOS, Ubuntu, dan Windows. Buka aplikasi MQTT Explorer. Tambahkan koneksi dan edit konfigurasi koneksi mqtt client di MQTT Explorer berikut untuk menghubungkan broker yang sudah aktif di localhost :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3aa723d49dcdecd82248879c54f7b550/href">https://medium.com/media/3aa723d49dcdecd82248879c54f7b550/href</a></iframe><p>Buat publisher dengan dua topic berikut :</p><ul><li>pogungbaru/c7/temperature</li><li>pogungbaru/c7/humidity</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*slv2JJhgoJ6yMphBLWU-yQ.gif" /><figcaption>test menggunakan mqttexplorer (sumber pribadi)</figcaption></figure><h3>Testing Menggunakan Mosquitto Client (optional)</h3><p>Buat subscriber pogungbaru/c7/humidity terlebih dahulu, dengan perintah berikut pada terminal atau command prompt berikut :</p><pre>mosquitto_sub -t pogungbaru/c7/humidity</pre><p>Kemudian buat subscriber yang kedua pogungbaru/c7/temperature</p><pre>mosquitto_sub -t pogungbaru/c7/temperature</pre><p>Selanjutnya siapkan publisher</p><pre>mosquitto_pub -t pogungbaru/c7/humidity -m &lt;humidity value&gt;<br>mosquitto_pub -t pogungbaru/c7/temperature -m &lt;temperature value&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*S5L9SuesfqKBllCsPvIyxA.gif" /><figcaption>test mqtt/mosquitto service (sumber pribadi)</figcaption></figure><h3>Shutdown Mosquitto</h3><p>Jika kamu ingin mematikan Mosquitto service, jalankan perintah berikut :</p><h4>MacOS</h4><pre>brew services stop mosquitto</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*vb5xUnsE6ZH9oqXf-iHJcA.gif" /><figcaption>stop mqtt/mosquitto service (sumber pribadi)</figcaption></figure><h4>Ubuntu Debian/Raspbian</h4><pre>sudo systemctl stop mosquitto.service #stop mosquitto<br>sudo systemctl status mosquitto #check mosquitto service</pre><h4>Docker</h4><pre>docker stop mosquitto</pre><h3>Todo</h3><ul><li>lebih dalam konfigurasi Mosquitto change port, auth, qos, dan lainnya.</li><li>main-main message broker menggunakan client terprogram menggunakan nodejs, python, go, atau yang lainnya.</li><li>review message broker lainnya seperti VerneMQ, Mosca, HiveMQ, dan lain sebagainya.</li></ul><h3>Referesi</h3><p><a href="https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04">How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04</a><br><a href="https://medium.com/@aegkaluk/install-mqtt-broker-on-ubuntu-18-04-15232ab0ee42">Install MQTT Broker on Ubuntu 18.04 &amp; 14.04</a><br><a href="https://github.com/mamunsyuhada/MqttBrokerOnMacOs/blob/master/README.md">Build Mosquito Queue Telemtry Transport OSX</a><br><a href="https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units">How To Use Systemctl to Manage Systemd Services and Units</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*U9b7tB-zGTTGfYC3qgDbkg.png" /><figcaption>logo mosquitto (<a href="https://mosquitto.org/images/mosquitto-text-side-28.png">sumber</a>)</figcaption></figure><blockquote>Growth is Uncomfortable because You Have Never Been There Before. You never seen this version of You. Keep Calm, Breathe through It and Keep Moving Forward. Relentless Pursuit of Excellence!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9318ba09ed45" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>