<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MQTT on foojay.io - Friends of OpenJDK</title><link>https://foojayio.github.io/website/today/category/mqtt/</link><description>Recent content in MQTT on foojay.io - Friends of OpenJDK</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 05 Jan 2022 12:06:07 +0000</lastBuildDate><atom:link href="https://foojayio.github.io/website/today/category/mqtt/index.xml" rel="self" type="application/rss+xml"/><item><title>Sending sensor data from Raspberry Pi Pico to HiveMQ Cloud</title><link>https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-3-sending-sensor-data-from-raspberry-pi-pico-to-hivemq-cloud/</link><pubDate>Wed, 05 Jan 2022 11:42:42 +0000</pubDate><guid>https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-3-sending-sensor-data-from-raspberry-pi-pico-to-hivemq-cloud/</guid><description>&lt;p&gt;In the previous two posts in this series, we used Java on the Raspberry Pi mini-computer to send sensor data to HiveMQ Cloud, and visualize it on a dashboard.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-1-send-sensor-data-to-hivemq-cloud-with-java-and-pi4j/"&gt;&amp;ldquo;Part 1: MQTT on Raspberry Pi, Send Sensor Data to HiveMQ Cloud with Java and Pi4J&amp;rdquo;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-2-using-mqtt-and-raspberry-pi-to-visualize-sensor-data-on-a-tilesfx-dashboard/"&gt;&amp;ldquo;Part 2: Using MQTT and Raspberry Pi to Visualize Sensor Data on a TilesFX Dashboard&amp;rdquo;&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now we are going to add some more data to our messaging system with another member of the Raspberry Pi family: the Pico, and add this new data to the JavaFX dashboard from part 2.&lt;/p&gt;</description></item><item><title>MQTT on Raspberry Pi (Part 2)</title><link>https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-2-using-mqtt-and-raspberry-pi-to-visualize-sensor-data-on-a-tilesfx-dashboard/</link><pubDate>Wed, 22 Dec 2021 14:58:21 +0000</pubDate><guid>https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-2-using-mqtt-and-raspberry-pi-to-visualize-sensor-data-on-a-tilesfx-dashboard/</guid><description>&lt;p&gt;In &lt;a href="https://webtechie.be/post/2021-12-10-mqtt-on-raspberry-pi-send-sensor-data-to-hivemq-cloud-with-java-and-pi4j/" target="_blank" rel="noopener noreferrer"&gt;the previous post&lt;/a&gt;
 we started our discovery of HiveMQ Cloud with Java on the Raspberry Pi. We created an application to send measurements of various sensors to the HiveMQ Cloud MQTT broker. Using an online websocket client we verified the transition of the messages, and could see the data being published to this online message queue.&lt;/p&gt;
&lt;p&gt;Now we will take the next step and subscribe to these topics to receive the data in a dashboard, created with JavaFX.&lt;/p&gt;</description></item><item><title>MQTT on Raspberry Pi: Sensor Data to HiveMQ Cloud with Java and Pi4J</title><link>https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-1-send-sensor-data-to-hivemq-cloud-with-java-and-pi4j/</link><pubDate>Wed, 15 Dec 2021 09:54:37 +0000</pubDate><guid>https://foojayio.github.io/website/today/mqtt-on-raspberry-pi-part-1-send-sensor-data-to-hivemq-cloud-with-java-and-pi4j/</guid><description>&lt;p&gt;A few years ago I did my first experiments with an MQTT server (Mosquitto) running on a Raspberry Pi to connect an Arduino and Raspberry Pi for &lt;a href="https://webtechie.be/post/2020-03-30-drumbooth-controller-with-java-javafx-raspberrypi-arduino/" target="_blank" rel="noopener noreferrer"&gt;the drumbooth of my son&lt;/a&gt;
. The full process is described in my book &lt;a href="https://webtechie.be/books/" target="_blank" rel="noopener noreferrer"&gt;&amp;ldquo;Getting Started with Java on the Raspberry Pi&amp;rdquo;&lt;/a&gt;
.&lt;/p&gt;
&lt;p&gt;In this series of articles we are going to take a different approach with an online MQTT-compatible service: &lt;a href="https://www.hivemq.com/mqtt-cloud-broker/" target="_blank" rel="noopener noreferrer"&gt;HiveMQ Cloud&lt;/a&gt;
. The biggest advantage: no need for an always-on server we must manage ourselves. Yes, Mosquitto runs on a inexpensive Raspberry Pi, but still we require to keep it up-and-running if we use it as the &amp;ldquo;central hub&amp;rdquo; to distribute data.&lt;/p&gt;</description></item></channel></rss>