<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mosquitto</title>
	<atom:link href="http://mosquitto.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://mosquitto.org</link>
	<description>An Open Source MQTT v3.1 Broker</description>
	<lastBuildDate>Wed, 16 May 2012 07:50:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Python client module available for testing</title>
		<link>http://mosquitto.org/2012/05/python-client-module-available-for-testing/</link>
		<comments>http://mosquitto.org/2012/05/python-client-module-available-for-testing/#comments</comments>
		<pubDate>Mon, 07 May 2012 00:17:57 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=217</guid>
		<description><![CDATA[As part of the ongoing work on mosquitto 0.16, the libmosquitto C client library has been ported to Python. It provides complete MQTTv3.1 support and will eventually remove the need for the current Python wrapper around the C library and will allow it to be used more easily and in more situations. The interface is [...]]]></description>
			<content:encoded><![CDATA[<p>As part of the ongoing work on mosquitto 0.16, the libmosquitto C client library has been ported to Python. It provides complete MQTTv3.1 support and will eventually remove the need for the current Python wrapper around the C library and will allow it to be used more easily and in more situations.</p>
<p>The interface is largely the same as the existing Python wrapper. The differences are that it uses the current development interface which differs slightly from that in 0.15 (see the <a href="http://mosquitto.org/documentation/python/">Python documentation</a>), not all of the new interface is implemented &#8211; there is no threading support and finally some datatypes may be more Python like (e.g. lists in on_subscribe() callback rather than an integer).</p>
<p>The conversion from ~4000 lines C to ~1000 lines Python took just two evenings and is now ready for testing. It is available in the 0.16 branch in the <a href="https://bitbucket.org/oojah/mosquitto/src/b9e04ef2a762/lib/python/mosquitto.py">bitbucket repository</a>, or as a single file at <a href="http://mosquitto.org/files/python/mosquitto.py">http://mosquitto.org/files/python/mosquitto.py</a></p>
<p>Please give it a try and report any bugs you find using any of the methods on the <a href="http://mosquitto.org/support/">Support page</a>.</p>
<p>Please note that the new Python module does not currently support Python 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/05/python-client-module-available-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick start guide for MQTT with Pachube/Cosm</title>
		<link>http://mosquitto.org/2012/03/quick-start-guide-for-mqtt-with-pachube/</link>
		<comments>http://mosquitto.org/2012/03/quick-start-guide-for-mqtt-with-pachube/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 10:32:22 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=212</guid>
		<description><![CDATA[Pachube (now Cosm) has recently announced beta support for publishing and receiving data to their service using MQTT. This is great news and something I know that a lot of people have been hoping for. Well done Pachube! Their documentation is at https://cosm.com/docs/beta/mqtt/ and provides enough information to get going if you&#8217;re already familiar with [...]]]></description>
			<content:encoded><![CDATA[<p>Pachube (now Cosm) has recently announced beta support for publishing and receiving data to their service using MQTT. This is great news and something I know that a lot of people have been hoping for. Well done Pachube!</p>
<p>Their documentation is at <a href="https://cosm.com/docs/beta/mqtt/">https://cosm.com/docs/beta/mqtt/</a> and provides enough information to get going if you&#8217;re already familiar with MQTT.</p>
<p>If you aren&#8217;t familiar with MQTT, here&#8217;s a few examples of how you can use the new service.</p>
<p>First off, I&#8217;m going to use the command line MQTT clients I&#8217;ve created to publish and receive data. You can get these clients as part of the <a href="http://mosquitto.org/download">mosquitto download</a>.</p>
<p>&nbsp;</p>
<h3>Command Line Examples</h3>
<h4>Publishing Data</h4>
<pre style="padding-left: 30px;">mosquitto_pub -h api.cosm.com -u &lt;your cosm api-key&gt;
              -t /v2/feeds/504.csv -m "0,29"</pre>
<p>In this example we&#8217;re connecting to host api.cosm.com, using our cosm api-key as the username, publishing to feed /v2/feeds/504 using the csv format and are updating datastream 0 with the value 29. Another way to achieve the same thing would be to do:</p>
<pre style="padding-left: 30px;">mosquitto_pub -h api.cosm.com -u &lt;your cosm api-key&gt;
              -t /v2/feeds/504/datastreams/0.csv -m 29</pre>
<p>mosquitto_pub can read data from stdin and publish it, so on Unix type systems the following arrangement is possible:</p>
<pre style="padding-left: 30px;">sensor_read | mosquitto_pub -h api.cosm.com -u &lt;api-key&gt;
                            -t /v2/feeds/504/datastreams/0.csv -l</pre>
<p>The &#8220;-l&#8221; option reads messages from stdin, sending a separate message for each line. This means that our imaginary executable sensor_read that is reading data from a sensor must be printing each reading as a text line.</p>
<h4>Retrieving Data</h4>
<p>In the MQTT world, retrieving data is done through subscriptions:</p>
<pre style="padding-left: 30px;">mosquitto_sub -h api.cosm.com -u &lt;api-key&gt; -t /v2/feeds/504/datastreams/0.csv</pre>
<p>In this example, mosquitto_sub will print a text line containing the csv data for datastream 0 of feed 504 every time it is updated.</p>
<h3></h3>
<h3>Last Will and Testament</h3>
<p>The last will and testament or just &#8220;will&#8221; is a very nice feature of MQTT. When your client connects to the MQTT broker/server, it can give the broker this will, which consists of a topic and a message. If the client is disconnected from the broker unexpectedly, that is to say without sending a disconnect message, then the broker publishes the will message on the will topic.</p>
<p>This provides a very simple mechanism for client connection monitoring. When your client connects it could publish a message &#8220;1&#8243; to a topic. If it also set a will to send a message &#8220;0&#8243; to the same topic on unexpected disconnect, then it would be possible to determine whether that client was connected by monitoring the topic.</p>
<p>In the context of Cosm, the same approach is possible, but using a trigger to indicate that the client had disconnected.</p>
<p>The mosquitto_sub client provides support for wills as shown in the example below:</p>
<pre style="padding-left: 30px;">mosquitto_sub -h api.cosm.com -u &lt;api-key&gt; -t /v2/feeds/504/datastreams/0.csv
            --will-topic /v2/feeds/12345/datastreams/0.csv -will-payload "0"</pre>
<p>In this example, the Cosm broker would publish the value &#8220;0&#8243; to datastream 0 of feed 12345  if mosquitto_sub disconnects unexpectedly. This isn&#8217;t the most useful example because of the limitations of what mosquitto_sub provides.</p>
<h3></h3>
<h3>Writing Your Own Clients</h3>
<p>In practice, to get the full benefit of the advantages that MQTT provides you will probably want to write your own MQTT client to connect to Cosm for your specific application. The <a href="http://mqtt.org/software">mqtt.org software</a> page lists client implementations for lots of different programming languages including the mosquitto client libraries in C/C++, libraries in Java, Python and also device specific implementations for Arduino and other low power devices.</p>
<h3></h3>
<h3>MQTT Beyond Cosm</h3>
<p>The Cosm offering is a slightly restricted MQTT offering. &#8220;Full&#8221; MQTT offers a bit more scope for doing fun things using topic wildcards for example, something that wouldn&#8217;t really make sense for Cosm.</p>
<p>There is an overview of MQTT at <a href="http://mosquitto.org/man/mqtt-7.html">http://mosquitto.org/man/mqtt-7.html</a> and examples of some applications at <a href="http://mosquitto.org/2012/01/do-you-use-mqtt/">http://mosquitto.org/2012/01/do-you-use-mqtt/</a>.</p>
<p>If you&#8217;d like to play on an MQTT broker, try looking at <a href="http://test.mosquitto.org/">http://test.mosquitto.org/</a>.</p>
<p>If you want some help there are mailing lists and irc channels listed on <a href="http://mqtt.org/get-involved">http://mqtt.org/get-involved</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/03/quick-start-guide-for-mqtt-with-pachube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upcoming incompatible library changes</title>
		<link>http://mosquitto.org/2012/03/upcoming-incompatible-library-changes/</link>
		<comments>http://mosquitto.org/2012/03/upcoming-incompatible-library-changes/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 07:37:31 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=210</guid>
		<description><![CDATA[Version 0.16 of the mosquitto client libraries will have some binary incompatible changes to their APIs. This means that it is a good time to make other changes that are incompatible. If you think any part of the interface (see http://mosquitto.org/api/ ) is crazy or could be improved in any way, please get in touch [...]]]></description>
			<content:encoded><![CDATA[<p>Version 0.16 of the mosquitto client libraries will have some binary incompatible changes to their APIs. This means that it is a good time to make other changes that are incompatible. If you think any part of the interface (see http://mosquitto.org/api/ ) is crazy or could be improved in any way, please get in touch or add a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/03/upcoming-incompatible-library-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mqtt2pachube</title>
		<link>http://mosquitto.org/2012/02/mqtt2pachube/</link>
		<comments>http://mosquitto.org/2012/02/mqtt2pachube/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 22:41:58 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=209</guid>
		<description><![CDATA[I&#8217;ve written a tool to help get data from mqtt to pachube. Existing pachube libraries offer good support for updating feeds that have a single datastream or updating all feeds in a datastream, but seem to offer limited support for updating an arbitrary datastream on its own. This can make life difficult when your data [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written a tool to help get data from mqtt to <a href="http://pachube.com/">pachube</a>. Existing pachube libraries offer good support for updating feeds that have a single datastream or updating all feeds in a datastream, but seem to offer limited support for updating an arbitrary datastream on its own. This can make life difficult when your data is coming in from sensors as individual messages.</p>
<p><a href="http://bitbucket.org/oojah/mqtt2pachube">mqtt2pachube</a> allows you to choose what mqtt subscriptions to make and then match incoming messages by their topics to a pachube feed and datastream id.</p>
<p>At the moment it is still experimental, but seems to work. It has highlighted a shortcoming in the mosquitto client library, so requires version 0.15.90 (ie. the in-progress work for the next release). There is no Windows support for the moment and no binary packages either. If you are interested in giving it a try, you will have to compile it yourself. If you need help, please get in touch.</p>
<p>There are two examples of feeds created through mqtt2pachube using data from <a href="http://test.mosquitto.org/">test.mosquitto.org</a>:</p>
<ul>
<li><a href="https://pachube.com/feeds/43810">test.mosquitto.org details</a></li>
<li><a href="https://pachube.com/feeds/47080">UK energy data &#8211; generation source percentage</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/02/mqtt2pachube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Version 0.15 released</title>
		<link>http://mosquitto.org/2012/02/version-0-15-released/</link>
		<comments>http://mosquitto.org/2012/02/version-0-15-released/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 09:26:41 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=206</guid>
		<description><![CDATA[This is a feature and bugfix release. Implement &#8220;once&#8221; and &#8220;lazy&#8221; bridge start types. Add support for $SYS/broker/clients/maximum and $SYS/broker/clients/active topics. Add support for $SYS messages/byte per second received/sent topics. Updated mosquitto man page &#8211; $SYS hierarchy and signal support were out of date. Auto generated pub/sub client ids now include the hostname. Tool for [...]]]></description>
			<content:encoded><![CDATA[<p>This is a feature and bugfix release.</p>
<ul>
<li>Implement &#8220;once&#8221; and &#8220;lazy&#8221; bridge start types.</li>
<li>Add support for $SYS/broker/clients/maximum and $SYS/broker/clients/active topics.</li>
<li>Add support for $SYS messages/byte per second received/sent topics.</li>
<li>Updated mosquitto man page &#8211; $SYS hierarchy and signal support were out of date.</li>
<li>Auto generated pub/sub client ids now include the hostname.</li>
<li>Tool for dumping persistent DB contents is available in src/db_dump. It isn&#8217;t installed by default.</li>
<li>Enforce topic length checks in client library.</li>
<li>Add new return type MOSQ_ERR_ERRNO to indicate that the errno variable should be checked for the real error code.</li>
<li>Add support for connection_messages config option.</li>
<li>mosquitto_sub will now refuse to run if the -c option (disable clean session) is given and no client id is provided.</li>
<li>mosquitto_pub now gives more useful error messages on invalid input or other error conditions.</li>
<li>Fix Python will_set() true/True typo.</li>
<li>Fix messages to topic &#8220;a/b&#8221; incorrectly matching on a subscription &#8220;a&#8221; if another subscription &#8220;a/#&#8221; exists.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/02/version-0-15-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Challenge: Web based MQTT graphing</title>
		<link>http://mosquitto.org/2012/01/challenge-web-based-mqtt-graphing/</link>
		<comments>http://mosquitto.org/2012/01/challenge-web-based-mqtt-graphing/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 12:21:06 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=203</guid>
		<description><![CDATA[Thanks to a data feed courtesy of an IBM broker, test.mosquitto.org now publishes information on energy generation and demand in the UK (in the energy/ topic tree). I think this could be used as a great demonstration for coupling MQTT and the web. The challenge Create a web based report that takes energy data from [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to a data feed courtesy of an IBM broker, <a href="http://test.mosquitto.org/">test.mosquitto.org</a> now publishes information on energy generation and demand in the UK (in the energy/ topic tree). I think this could be used as a great demonstration for coupling MQTT and the web.</p>
<h3>The challenge</h3>
<p>Create a web based report that takes energy data from the broker over MQTT and displays it in interesting and useful ways. Alternatively, an Android/iPhone app would be ok, but web based is the preferred option.</p>
<h3>The rules</h3>
<p>There are no rules really. Having said that, I&#8217;d be most pleased if the end result was something that other people could learn from. There are bonus points for solutions that work where a web proxy is the only internet access. If you want to use new or unusual technologies that&#8217;s fine.</p>
<h3>The prize</h3>
<p>I&#8217;m afraid there is no tangible prize &#8211; I hope you&#8217;ll be content with your work being shown here and the respect of your peers.</p>
<h3>Some suggestions</h3>
<p>Google charts is definitely worth looking at for generating the actual graphs. Some examples of what you might show are:</p>
<ul>
<li>Pie chart of generation source</li>
<li>Gauge of current mains frequency</li>
<li>Historical graph of electricity export amount</li>
</ul>
<p>I look forward to any and all responses!</p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/01/challenge-web-based-mqtt-graphing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Version 0.14.4 released</title>
		<link>http://mosquitto.org/2012/01/version-0-14-4-released/</link>
		<comments>http://mosquitto.org/2012/01/version-0-14-4-released/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 16:24:14 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Releases]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=200</guid>
		<description><![CDATA[This is a bugfix release: Fix local bridge notification messages. Fix return values for more internal library calls. Fix incorrect out of memory checks in library and broker. Never time out local bridge connections.]]></description>
			<content:encoded><![CDATA[<p>This is a bugfix release:</p>
<ul>
<li>Fix local bridge notification messages.</li>
<li>Fix return values for more internal library calls.</li>
<li>Fix incorrect out of memory checks in library and broker.</li>
<li>Never time out local bridge connections.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/01/version-0-14-4-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mosquitto Test Server</title>
		<link>http://mosquitto.org/2012/01/mosquitto-test-server/</link>
		<comments>http://mosquitto.org/2012/01/mosquitto-test-server/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 21:43:07 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Support]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=198</guid>
		<description><![CDATA[A publicly accessible Mosquitto server is now available to use. Details are at http://test.mosquitto.org/]]></description>
			<content:encoded><![CDATA[<p>A publicly accessible Mosquitto server is now available to use. Details are at <a href="http://test.mosquitto.org/">http://test.mosquitto.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/01/mosquitto-test-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Do you use MQTT?</title>
		<link>http://mosquitto.org/2012/01/do-you-use-mqtt/</link>
		<comments>http://mosquitto.org/2012/01/do-you-use-mqtt/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 22:21:49 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Applications]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=196</guid>
		<description><![CDATA[I saw this in the nanode irc channel: I&#8217;ve never seen any real world projects with MQTT&#8230; it looks good though. So I&#8217;m looking for real world projects that use MQTT. If you&#8217;ve got a project it&#8217;d be great if you could mention it in the comments. A short sentence on what it does and [...]]]></description>
			<content:encoded><![CDATA[<p>I saw this in the nanode irc channel:</p>
<blockquote><p>I&#8217;ve never seen any real world projects with MQTT&#8230; it looks good though.</p></blockquote>
<p>So I&#8217;m looking for real world projects that use MQTT. If you&#8217;ve got a project it&#8217;d be great if you could mention it in the comments. A short sentence on what it does and how many clients you run on it &#8211; really anything you can say. If it&#8217;s a secret please still comment if you can, just be very very vague. If you&#8217;ve got a blog post describing it, link that instead. I&#8217;m interested in everything from a single temperature sensor reporting to a computer up to millions of mobile users.</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2012/01/do-you-use-mqtt/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>MQTT on Nanode</title>
		<link>http://mosquitto.org/2011/12/mqtt-on-nanode/</link>
		<comments>http://mosquitto.org/2011/12/mqtt-on-nanode/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 11:07:48 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://mosquitto.org/?p=191</guid>
		<description><![CDATA[Nanode, the popular arduino-with-ethernet board started early in 2011 is ideal for small MQTT based projects but has so far lacked an implementation of MQTT. Nick O&#8217;Leary, the author of the original Arduino MQTT client, has created a Nanode implementation, but it isn&#8217;t quite ready for the public. Nicholas Humfrey has made public some code [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://nanode.eu/">Nanode</a>, the popular arduino-with-ethernet board started early in 2011 is ideal for small MQTT based projects but has so far lacked an implementation of MQTT.</p>
<p>Nick O&#8217;Leary, the author of the original Arduino MQTT client, <a href="https://twitter.com/#!/knolleary/status/151057575775965184">has created a Nanode implementation</a>, but it <a href="https://twitter.com/#!/knolleary/status/151059089881960448">isn&#8217;t quite ready for the public</a>.</p>
<p>Nicholas Humfrey has made public some code at <a href="https://github.com/njh/NanodeMQTT">https://github.com/njh/NanodeMQTT</a> that he says <a href="https://twitter.com/#!/njh/status/152913104446038018">&#8220;still needs some work&#8221;</a> but supports publishing QoS 0 messages of up to 127 bytes long and subscribing to topics with QoS 0.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://mosquitto.org/2011/12/mqtt-on-nanode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

