<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cs.earlham.edu/index.php?action=history&amp;feed=atom&amp;title=Mosquitto</id>
	<title>Mosquitto - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cs.earlham.edu/index.php?action=history&amp;feed=atom&amp;title=Mosquitto"/>
	<link rel="alternate" type="text/html" href="https://wiki.cs.earlham.edu/index.php?title=Mosquitto&amp;action=history"/>
	<updated>2026-08-09T22:35:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.cs.earlham.edu/index.php?title=Mosquitto&amp;diff=15501&amp;oldid=prev</id>
		<title>Craigje: Created page with &quot;HIP is using Mosquitto software a platform to run an MQTT publish-subscribe data collection model. Its first use will be with the indoor air quality monitors in Joseph Moore Muse...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cs.earlham.edu/index.php?title=Mosquitto&amp;diff=15501&amp;oldid=prev"/>
		<updated>2015-07-21T13:56:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;HIP is using Mosquitto software a platform to run an MQTT publish-subscribe data collection model. Its first use will be with the indoor air quality monitors in Joseph Moore Muse...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;HIP is using Mosquitto software a platform to run an MQTT publish-subscribe data collection model. Its first use will be with the indoor air quality monitors in Joseph Moore Museum and in the Center for Science and Technology.&lt;br /&gt;
&lt;br /&gt;
==Publish-Subscribe and Mosquitto==&lt;br /&gt;
There are two general approaches to moving data, each with advantages and disadvantages. One is a poll. In this approach, the data sits where it is being collected and a computer periodically asks for the current reading. For example, every minute, HIP&amp;#039;s computer Proto runs a script that collects the most recent reading from each energy monitoring device it has set up on campus. Other than actual data collection, the computer does all the work.&lt;br /&gt;
&lt;br /&gt;
MQTT, implemented in our case via the Mosquitto software program, is used for the other approach, publish-subscribe or &amp;quot;pub-sub.&amp;quot; In this case, the device that collects the data (or, more generally, any machine that has information you want another machine to have) also publishes it as a message. Anyone with the right access and software can then subscribe to receive these messages. A message broker, in this case Mosquitto, is used to manage both publication and subscription.&lt;br /&gt;
&lt;br /&gt;
A bit more technically, from [http://mosquitto.org the Mosquitto website]:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Mosquitto is an open source (BSD licensed) message broker that implements the MQ Telemetry Transport protocol versions 3.1 and 3.1.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for &amp;quot;machine to machine&amp;quot; messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example of Mosquitto==&lt;br /&gt;
Install mosquitto and mosquitto-clients. Then run the following commands (no need to change any settings for these):&lt;br /&gt;
* in one terminal: mosquitto_sub -t hello/world&lt;br /&gt;
* in another terminal: mosquitto_pub -t hello/world -m &amp;quot;hello world&amp;quot;&lt;br /&gt;
The first command subscribes you to the topic hello/world, which is hierarchically organized first by hello and then by world (think of the path to a file in Linux). The second publishes the message &amp;quot;hello world&amp;quot; to that topic. That message should appear in the first terminal.&lt;br /&gt;
&lt;br /&gt;
As always, see man pages for more.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
[http://mosquitto.org Mosquitto website]&lt;br /&gt;
[http://mosquitto.org/documentation Mosquitto man pages and other docs]&lt;/div&gt;</summary>
		<author><name>Craigje</name></author>
	</entry>
</feed>