<?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 Michael Linder on Medium]]></title>
        <description><![CDATA[Stories by Michael Linder on Medium]]></description>
        <link>https://medium.com/@achildrenmile?source=rss-ac4414184a54------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HxXTqSTYKAtoq0CuFtziqQ.jpeg</url>
            <title>Stories by Michael Linder on Medium</title>
            <link>https://medium.com/@achildrenmile?source=rss-ac4414184a54------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 16:42:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@achildrenmile/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[Workshopper — the tool for making workshops awesome]]></title>
            <link>https://medium.com/@achildrenmile/workshopper-the-tool-for-making-workshops-awesome-c40231803344?source=rss-ac4414184a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/c40231803344</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[workshop]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[openshift]]></category>
            <dc:creator><![CDATA[Michael Linder]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 14:26:20 GMT</pubDate>
            <atom:updated>2018-11-18T14:46:39.412Z</atom:updated>
            <content:encoded><![CDATA[<h3>Workshopper — the tool for making workshops awesome</h3><p>You are in a situation where you need to build a web-based work shop or create lab guides? Well, then Workshopper can help you a lot.</p><p>The following few lines should guide you to the right places and give you a quick start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prA9p-AfBdaPczXNfXcZEw.png" /><figcaption>Sample Workshop</figcaption></figure><p>The tool was created by the O<a href="https://github.com/openshift-evangelists">penShift evangelists</a> and written in Ruby on Rails. The content of each lab could be written in <a href="https://www.markdownguide.org/">Markdown</a> or <a href="https://asciidoctor.org/docs/asciidoc-writers-guide/">AsciiDoc</a>.</p><p>You’ll find the tool here <a href="https://github.com/openshift-evangelists/workshopper">https://github.com/openshift-evangelists/workshopper</a>.</p><p>For a get started template I highly recommend using this one <a href="https://github.com/siamaksade/workshopper-template">https://github.com/siamaksade/workshopper-template</a>.</p><p>Further templates will follow soon.</p><p>Enjoy using the tool!</p><ul><li><a href="https://github.com/openshift-evangelists/workshopper/">openshift-evangelists/workshopper</a></li><li><a href="https://github.com/siamaksade/workshopper-template">siamaksade/workshopper-template</a></li><li><a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet">Markdown Cheatsheet</a></li><li><a href="https://powerman.name/doc/asciidoc">AsciiDoc cheatsheet</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c40231803344" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thinger.IO Maker Server on Raspberry PI — Quick Guide]]></title>
            <link>https://medium.com/@achildrenmile/thinger-io-maker-server-on-raspberry-pi-quick-guide-c58f5640aac9?source=rss-ac4414184a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/c58f5640aac9</guid>
            <category><![CDATA[thingerio]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Michael Linder]]></dc:creator>
            <pubDate>Sat, 07 Apr 2018 18:04:10 GMT</pubDate>
            <atom:updated>2018-04-08T06:33:23.043Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>What is Thinger.IO?</h3><p>Thinger.IO is an online platform which let’s you, according to the platform description “Connect and Manage your Internet of Things products within minutes”. It helps the maker to create awesome IoT projects. And in addition…one can use the capabilities of the platform also in private environments running Ubuntu as base operation system.</p><h3>What is the aim of the post?</h3><p>The aim of this post is to give you a quick step-by-step guide for installation of Thinger.IO maker server on a Raspberry PI 3.</p><h3>Steps</h3><ol><li>Go to <a href="https://ubuntu-mate.org/download/">https://ubuntu-mate.org/download/</a></li><li>Download the Raspberry PI version</li><li>Burn the image to a SD card (for doing this quite easily, I recommend to use etcher <a href="https://etcher.io/">https://etcher.io/</a></li><li>But the SD card into the Raspberry PI and follow the installation &amp; configuration steps of the wizard</li><li>Follow the instructions on <a href="http://docs.thinger.io/deployment/">http://docs.thinger.io/deployment/</a> in order to setup &amp; configure the environment (Edit: Use “ sudo apt install -y mongodb” to install the MongoDB as “mongodb-org” cannot be found)</li><li>Have fun with your private unlimited Thinger.IO backend on your Raspberry Pi.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uy8Ht5BGd_ibP_fhr6FgJA.jpeg" /><figcaption>Ubuntu Mate Installation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*nQa8DGzgJ5me8J3aozDeOQ.png" /><figcaption>Final result</figcaption></figure><h3>What comes next?</h3><p>Checking if the platform can be “dockerized”.</p><p>If you like the article, it would be great to leave your claps here =)</p><ul><li><a href="https://thinger.io/">Home</a></li><li><a href="https://ubuntu-mate.org/">Ubuntu MATE | For a retrospective future</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c58f5640aac9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.Net Core MVC WebApp on OpenShift Online in less than 5 minutes]]></title>
            <link>https://medium.com/@achildrenmile/net-core-mvc-webapp-on-openshift-online-in-less-than-5-minutes-82ee2c58c858?source=rss-ac4414184a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/82ee2c58c858</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[paas]]></category>
            <category><![CDATA[openshift]]></category>
            <dc:creator><![CDATA[Michael Linder]]></dc:creator>
            <pubDate>Fri, 23 Feb 2018 18:19:06 GMT</pubDate>
            <atom:updated>2018-02-24T13:54:46.704Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>Hi everybody, this article will give you a quick step by step guide to deploy your first .Net Core MVC WebApp on OpenShift.</p><h3>Step 1 — Create an OpenShift Online account for free</h3><ul><li>Open your browser and go to <a href="https://www.openshift.com/">https://www.openshift.com/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xfz9hc7Hdotrjj_nr5E-uA.png" /><figcaption>OpenShift Online Platform</figcaption></figure><ul><li>sign up for free</li></ul><p>Follow the registration process and choose a free starter environment (atm either Canada or US East)</p><h3>Step 2 — Create a project</h3><ul><li>Open the Web console</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ba21Sx819f689MDMreV20Q.png" /><figcaption>OpenShift Web Console — start screen</figcaption></figure><ul><li>Create a project</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTYdASXEEIVgQ-R8Dd4CGQ.png" /><figcaption>Create the project</figcaption></figure><h3>Step 3 — Deploy the application</h3><ul><li>Choose .NET Core Builder Images</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7VTUXJsQLL1B2qYrCKv8Nw.png" /><figcaption>Create Image 1</figcaption></figure><ul><li>Next — on the configuration screen</li><li>add a name for your application</li><li>Choose .Net Core Version 2.0</li><li>Thanks to the RedHat community we are able to use the ready to start example from <a href="https://github.com/redhat-developer/s2i-dotnetcore-ex">https://github.com/redhat-developer/s2i-dotnetcore-ex</a>. This has to be added as repository. It uses the standard .Net Core MVC template. I recommend you to use this a starting point for your .Net Core Webapps you want to deploy on the OpenShift platform.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CaJPU-hrB8gJE5M-1JG5Pw.png" /><figcaption>Create Image 2</figcaption></figure><ul><li>Create</li></ul><h3>Step 4 — Verify if it is up and running</h3><p>The creation process will compile and prepare everything for startup and finally will start the web app.</p><ul><li>Navigate to Routes</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0pzj8XEEfhWRhrQbmVVbQ.png" /><figcaption>Open Routes</figcaption></figure><ul><li>Click on the hostname</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gCXQlvvrh_2XHZmpBPYKkA.png" /><figcaption>Open the web app — click on hostname</figcaption></figure><ul><li>app will open</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kW4GL-2QiP_P7s4HOPDSOw.png" /><figcaption>.Net Core Web App alive on OpenShift online</figcaption></figure><ul><li>Works — ready for more action</li></ul><h3>Recommendation &amp; further links</h3><p>To start with the container deployment, I recommend you to check the basics about Docker, Kubernetes and Openshift. Here you find a few links for getting started.</p><p>If you like the article, it would be great to leave your claps here =)</p><ul><li><a href="https://kubernetes.io/docs/home/?path=users&amp;persona=app-developer&amp;level=foundational">Kubernetes Documentation</a></li><li><a href="https://learn.openshift.com/">Interactive Learning Portal</a></li><li><a href="https://blog.scottlowe.org/2014/03/11/a-quick-introduction-to-docker/">A Quick Introduction to Docker - Scott&#39;s Weblog - The weblog of an IT pro specializing in cloud computing, virtualization, and networking, all with an open source view</a></li><li><a href="https://www.digitalocean.com/community/tutorials/an-introduction-to-kubernetes">An Introduction to Kubernetes | DigitalOcean</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82ee2c58c858" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an emergency button in under 10 minutes]]></title>
            <link>https://medium.com/@achildrenmile/create-an-emergency-button-in-under-10-minutes-b9c68b3219c4?source=rss-ac4414184a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9c68b3219c4</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[emergency]]></category>
            <category><![CDATA[aws-iot]]></category>
            <dc:creator><![CDATA[Michael Linder]]></dc:creator>
            <pubDate>Sun, 07 Jan 2018 18:48:12 GMT</pubDate>
            <atom:updated>2018-01-07T18:48:12.583Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>This post will provide a Step-By-Step guide to create an emergency button to notify SMS and email subscribers.</p><p><strong>1 Before you start</strong></p><p>You need to have following parts to start:</p><ol><li>AWS IoT Button (<a href="https://www.amazon.com/All-New-AWS-IoT-Button-Generation/dp/B01KW6YCIM/ref=sr_1_1?ie=UTF8&amp;qid=1515345656&amp;sr=8-1&amp;keywords=iot+button">https://www.amazon.com/All-New-AWS-IoT-Button-Generation/dp/B01KW6YCIM/ref=sr_1_1?ie=UTF8&amp;qid=1515345656&amp;sr=8-1&amp;keywords=iot+button</a>)</li><li>AWS Free Tier subscription (<a href="https://aws.amazon.com/de/free/">https://aws.amazon.com/free/</a>)</li><li>Email Address</li><li>Smartphone to receive SMS</li></ol><p><strong>2 Getting started</strong></p><ol><li>Sign in to AWS IoT Console — <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-console-signin.html">https://docs.aws.amazon.com/iot/latest/developerguide/iot-console-signin.html</a></li><li>Register you button in the Thing Registry — <a href="https://docs.aws.amazon.com/iot/latest/developerguide/register-device.html">https://docs.aws.amazon.com/iot/latest/developerguide/register-device.html</a></li><li>Create a device certificate — <a href="https://docs.aws.amazon.com/iot/latest/developerguide/create-device-certificate.html">https://docs.aws.amazon.com/iot/latest/developerguide/create-device-certificate.html</a></li><li>Configure your button — <a href="https://docs.aws.amazon.com/iot/latest/developerguide/configure-iot.html">https://docs.aws.amazon.com/iot/latest/developerguide/configure-iot.html</a></li><li>Test your button — <a href="https://docs.aws.amazon.com/iot/latest/developerguide/view-mqtt-messages.html">https://docs.aws.amazon.com/iot/latest/developerguide/view-mqtt-messages.html</a></li></ol><p><strong>3 Scenario</strong></p><p>In this scenario we are using the IoT Button to send emergency messages using the AWS IoT Stack, a Lambda function written in Python and SNS to inform the subscribers via SMS and email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPe_VyjiA_bioWCfaJp1aQ.png" /><figcaption>Scenario</figcaption></figure><p><strong>4 Setup</strong></p><ol><li>Open the AWS IoT Console</li><li>Create new rule</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0eukCqKNfQnMXS79vgcmoQ.png" /><figcaption>Create rule (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSE34nrm15Y_Vfi7niAJ1Q.png" /><figcaption>Create rule (2)</figcaption></figure><p>3. add action</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pVV2-zvej_6JDqGiEhWDdA.png" /><figcaption>add Lambda function</figcaption></figure><p>4. create Lambda function using the python code below. Change TopicArn to your sns topic. <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/US_SetupSNS.html">https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/US_SetupSNS.html</a> will help you to configure SNS. Configure two subscribers: (1) for SMS and (2) for Email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gfg4oaOHxIPrwG2g6rNDvA.png" /><figcaption>create Lambda function</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05da96caec41d450d20185db8a9670fe/href">https://medium.com/media/05da96caec41d450d20185db8a9670fe/href</a></iframe><p>5. Result</p><p>Now you can test your button.</p><p>Single click shall notify your configured SNS subscribers with the message “Need help”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPnkkkOZ8RacL1f4LddOfQ.png" /><figcaption>Need help mail</figcaption></figure><p>Double click shall notify your configured SNS subscriber with “Need help, it’s urgent.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuYCz7GC08y1sRCmZ-VdCQ.png" /><figcaption>Urgent need help mail</figcaption></figure><p>Long click shall notify your configured SNS subscriber with “Need help, it’s urgent.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9oxrvJHeNbnN5XsWeeK1Q.png" /><figcaption>Hurry up help mail</figcaption></figure><h4>7 Links</h4><p><a href="https://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html">What is AWS IoT?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9c68b3219c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT — temperature and humidity sensor example using MXDevKit and Custom MQTT Broker]]></title>
            <link>https://medium.com/@achildrenmile/iot-temperature-and-humidity-example-using-mxdevkit-and-custom-mqtt-broker-6d4916003a4d?source=rss-ac4414184a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d4916003a4d</guid>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[hands-on]]></category>
            <category><![CDATA[mxdevkit]]></category>
            <category><![CDATA[stralisolutions]]></category>
            <dc:creator><![CDATA[Michael Linder]]></dc:creator>
            <pubDate>Wed, 27 Dec 2017 14:46:40 GMT</pubDate>
            <atom:updated>2018-01-28T14:07:10.752Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>In the previous <a href="https://medium.com/@achildrenmile/mqtt-broker-on-aws-ec2-hands-on-install-configure-test-out-f12dd2f5c9d0">article</a>, I described how to configure a custom MQTT broker on AWS EC2 instance and test out the different types of communication. This post will provide a Step-By-Step guide to create an IoT example using a custom MQTT broker, a microcontroller and an Android phone.</p><h4>1 Before you start</h4><p>You need to have following parts to start:</p><ol><li>MXChip IoT DevKit AZ3166 (<a href="http://mxchip.com/az3166">http://mxchip.com/az3166</a>)</li><li>MQTT Broker (e.g. iot.eclipse.org or <a href="https://medium.com/@achildrenmile/mqtt-broker-on-aws-ec2-hands-on-install-configure-test-out-f12dd2f5c9d0">DIY one</a>)</li><li>Android Smartphone with installed MQTT Dash app</li></ol><h4>2 Configuration and Preperation</h4><p>In order to prepare the development environment, use the instructions <a href="https://microsoft.github.io/azure-iot-developer-kit/docs/get-started/">https://microsoft.github.io/azure-iot-developer-kit/docs/get-started/</a> to (1) configure your MXDevKit and (2) install the development tools on your machine.</p><h4>3 Scenario</h4><p>In this scenario we are using a MQTT communication to get temperature and humidity from the MXDevKit everytime we publishing a new message to the topic “mxtest” using the MQTT Dash app on the Android device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7EePMqvY2zaq5sdYozUgbg.png" /><figcaption>Scenario</figcaption></figure><h4>4 Microcontroller program</h4><p>For this scenario the Microsoft<a href="https://microsoft.github.io/azure-iot-developer-kit/docs/projects/mqtt-helloworld/"> MQTT example Sketch</a> was used as base and adapted according to the above defined scenario. You can find this sketch <a href="https://github.com/achildrenmile/StraliMQTT">here</a>.</p><h4>5 Installation on MXDevKit</h4><ol><li>If you have an AntiVirus Software like McAffee, you have to deactivate it before.</li><li>Download the <a href="https://github.com/achildrenmile/StraliSolutions.MQTT">sketch</a></li><li>Open VS Code with Administrative Privileges</li><li>Open the sketch</li><li>Connect the MXDevKit</li><li>Configure mqttServer variable in MQTTClient.ino</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlbgcy3Ru5osXtD97w-ieA.png" /><figcaption>VS Code — configuration MQTT Server</figcaption></figure><p>7. Upload the sketch to the MXDevKit</p><p>(1)Use CTRL+P and then (2) enter task device-upload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vy1oCKXbDV0XlfjLRbQUdw.png" /><figcaption>Sketch upload to MXDevKit</figcaption></figure><h4>6 Configure MQTT Dash</h4><ol><li>Open MQTT Dash on your Android device</li><li>Create a new connection to the configured MQTT Broker and port (e.g. iot.eclipse.org Port:1883)</li><li>Create a new TEXT subscription and subscribe to the topic “mxtest” (Note: In case you have changed the topic in the Arduino Sketch use this one)</li></ol><h4>7 Result</h4><p>After successfully done the above steps, you will see following result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBH2vnWMTroplwQ_BdDokA.png" /><figcaption>Result</figcaption></figure><h4>7 Links</h4><ul><li><a href="http://mxchip.com/az3166">MXCHIP IoT DevKit AZ3166</a></li><li><a href="https://microsoft.github.io/azure-iot-developer-kit/docs/projects/mqtt-helloworld/">MQTT Client</a></li><li><a href="https://iot.eclipse.org/getting-started">iot.eclipse.org - Getting Started</a></li><li><a href="https://github.com/achildrenmile/StraliSolutions.MQTT">achildrenmile/StraliSolutions.MQTT</a></li><li><a href="https://www.eclipse.org/paho/clients/cpp/">Eclipse Paho - MQTT and MQTT-SN software</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d4916003a4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MQTT broker on AWS EC2 hands on— install, configure & test out]]></title>
            <link>https://medium.com/@achildrenmile/mqtt-broker-on-aws-ec2-hands-on-install-configure-test-out-f12dd2f5c9d0?source=rss-ac4414184a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/f12dd2f5c9d0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[mqtt-broker-on-aws-ec2]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[mosquitto]]></category>
            <dc:creator><![CDATA[Michael Linder]]></dc:creator>
            <pubDate>Sun, 26 Nov 2017 18:27:10 GMT</pubDate>
            <atom:updated>2017-11-26T18:27:10.418Z</atom:updated>
            <content:encoded><![CDATA[<p>IoT is becoming more and more adopted in the every day life - from Amazon Echo to smart home applications using connected devices. One of the important parts behind the scenarios from a technical perspective is, to understand and apply the protocol stack behind the IoT scenarios.</p><p>According to MQTT.org, MQTT is “<em>is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. [1]”</em></p><p>The intention of this article is to provide everyone a checklist for (1) create &amp; configure a MQTT broker on AWS EC2 and (2) to test basic communication scenarios.</p><p>Before starting with the hands on, I recommend you the get familiar with the MQTT protocol stack by having a look at <a href="http://mqtt.org/">http://mqtt.org/</a>.</p><h3>1 Configure &amp; Launch the EC2 Instance</h3><p>First of all you need to have an AWS account. If you don’t have one, you can create a new account on AWS (<a href="https://aws.amazon.com/">https://aws.amazon.com</a>) and get one year computing, storage and serveral other services for free using the so called “Free Tier”.</p><ol><li>Logon to the AWS Console and then select EC2 in services Section</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*XNkNiqIgUIRQg8P3eyKllQ.png" /><figcaption>Select EC2</figcaption></figure><p>2. Select the preferred AWS regionand then launch a new instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7LIcid4PPsFmztLnkmwLTg.png" /><figcaption>Select AWS region and launch</figcaption></figure><p>3. Select Ubuntu Server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njCIH6d4m93BEb5xARdtNg.png" /></figure><p>4. Select an instance type</p><p>In order to use the free tier contingent, it’s recommended to use t2.micro for testing purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*x7awpUlZqIy4DL7Urox08Q.png" /><figcaption>t2.micro selection</figcaption></figure><p>6. Configure security group</p><p>In this example following ports will be used:</p><ul><li>TCP 1883 for unsecured MQQT broker communication via TCP</li><li>TCP 1884 for secured MQQT broker communication via TCP</li><li>TCP 3033 for unsecured communication via Websocket</li><li>TCP 8033 for secured communcation via Websocket</li><li>TCP 80 is needed for CertBot verfication process</li></ul><p>In this step, the security groups settings will be configured accordingly to allow access to the ports from outside.</p><p><strong>Note: as this is a test installation, this allows access from anywhere in the internet. It’s strongly recommended that for production purpose the rules have to be reviewed and to close unnecessary open ports or define the allowed IP addresses.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*FI1YxR3gD8ISl4_oUvdBKw.png" /><figcaption>Security group configuration</figcaption></figure><p>7. Allocate an elastic IP address</p><p>This is needed that your machine gets a public ip address and is reachable from the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/190/1*4GDpRipD1O60iq9IDYh4dA.png" /><figcaption>Elastic IP section</figcaption></figure><p>First select Elastic IPs in EC2 Dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ay8gurCdWOtxb6HFRir47A.png" /><figcaption>Allocate a new address</figcaption></figure><p>Then allocate a new address for your EC2 instance.</p><p>8. Launch your machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*m0eU1OoSRv9PhbX2HgDe7g.png" /><figcaption>Machine launched</figcaption></figure><p>After launching the machine you can follow the instructions in the <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html">AWS documentation</a> in order to connect to the machine. In case you use putty as ssh client, <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html">this</a> guide will help you.</p><h3>2 Install &amp; Configure the broker</h3><p>In these scenarios we will use the Mosquitto broker. You can find a detailed installation guide <a href="http://blog.yatis.io/install-secure-robust-mosquitto-mqtt-broker-aws-ubuntu/">here</a>.</p><h3>3 Install the Windows Client — MQTT Lens</h3><p>MQTT Lens is a chrome extension. <a href="https://chrome.google.com/webstore/detail/mqttlens/hemojaaeigabkbcookmlgmdigohjobjm">Here</a> is the link to the direct installation.</p><h3>4 Install the Android Client — MQTT Dash</h3><p>MQTT Dash is an Android MQTT client. You can download the <a href="https://play.google.com/store/apps/details?id=net.routix.mqttdash&amp;hl=de">client</a> on the play store.</p><h3>5 Test on MQTT Lens</h3><p>MQTT Lens allows you to communicate with the broker using the unsecured listeners.</p><p>First of all, let’s add an test connection to the unsecured TCP listener. In case you are using a DNS name for your broker, change “yourbroker” with your dns name, otherwise enter the public ip. Depending on your broker configuration, you have to use credentials or you can use the broker anonymously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ZOcfHeo2A3QV30kZoNZsjw.png" /><figcaption>MQTT Lens usecured TCPlistener configuration</figcaption></figure><p>After successfully configuration, let’s test the communication channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*LxFsyty0F6rN95rdDWORuQ.png" /><figcaption>Test communication for unsecured TCPchannel</figcaption></figure><p>After this is working as expected, let’s test the websockets scenario. So, we open again the registration and register our websockets channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*UV6nFm13EXbcuPbpqW3OOA.png" /><figcaption>Test communcation for our unsecured websockets channel</figcaption></figure><p>Now, let’s test the WebSockets channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*U8rvuQzYuQKj7y9wdwMZ9Q.png" /></figure><h3>6 Test on MQTT Dash</h3><p>The configuration on MQTT Dash is similar to the above mentioned configurations for MQTT Lens. Additionally, MQTT Dash provides access to the secured configuration, as well as having capability of also subscribing and publishing images and sensor information.</p><h3>Thank you</h3><p>Hope that this article provides you a good explanation and collection of ressources for configuring a cloud hosted MQTT broker.</p><p>References</p><p>[1] <a href="http://mqtt.org/">http://mqtt.org/</a></p><p>Further links</p><ul><li><a href="http://wingsquare.com/blog/setting-up-mqtt-mosquitto-broker-in-ubuntu-linux/">Setting up MQTT Mosquitto broker in Ubuntu Linux</a></li><li><a href="http://blog.yatis.io/install-secure-robust-mosquitto-mqtt-broker-aws-ubuntu/">How to install secure, robust Mosquitto MQTT broker on AWS Ubuntu - Yatis Blog</a></li><li><a href="https://github.com/mqtt/mqtt.github.io/wiki/servers">mqtt/mqtt.github.io</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2FtbRazSI6H4phhj&amp;url=https%3A%2F%2Fde.slideshare.net%2FBryanBoyd%2Fmqtt-austin-api&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2F0xwitjksqnqruoz4tnsi-signature-6a256d24caf5d1fcc6a3bf1d013dfe0e1fa99369a560d140998f50cbdbc6d127-poli-140828123252-phpapp02-thumbnail-4.jpg%3Fcb%3D1409229409&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/41194f2200949701953ee6ac12824293/href">https://medium.com/media/41194f2200949701953ee6ac12824293/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f12dd2f5c9d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>