<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Streaming</title>
	<atom:link href="http://arduiniana.org/libraries/streaming/feed/" rel="self" type="application/rss+xml" />
	<link>http://arduiniana.org</link>
	<description>Arduino wisdom and gems by Mikal Hart</description>
	<lastBuildDate>Thu, 02 Feb 2012 11:22:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shibu</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25216</link>
		<dc:creator>Shibu</dc:creator>
		<pubDate>Sun, 29 Jan 2012 13:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25216</guid>
		<description>Hi Mikal,

Maple is derived from Arduino-18. But probably they have removed the variable &#039;Arduino&#039;.
I added &quot;#define ARDUINO  18&quot; to the top of my code and it works fine. 


Thanks for the lead.

PS: I wrote a library for reading from Sensirion temperature and humidity sensor SHT-15 which work OK (on Maple). But when I try it with streaming library, thing become flakey. Some sketches compile while others don&#039;t. Error messages are not at all helpful. The error messages are popping-up at linking stage - not compile stage. I don&#039;t know if you can help me on this

Regards,

Shibu</description>
		<content:encoded><![CDATA[<p>Hi Mikal,</p>
<p>Maple is derived from Arduino-18. But probably they have removed the variable &#8216;Arduino&#8217;.<br />
I added &#8220;#define ARDUINO  18&#8243; to the top of my code and it works fine. </p>
<p>Thanks for the lead.</p>
<p>PS: I wrote a library for reading from Sensirion temperature and humidity sensor SHT-15 which work OK (on Maple). But when I try it with streaming library, thing become flakey. Some sketches compile while others don&#8217;t. Error messages are not at all helpful. The error messages are popping-up at linking stage &#8211; not compile stage. I don&#8217;t know if you can help me on this</p>
<p>Regards,</p>
<p>Shibu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norm</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25205</link>
		<dc:creator>Norm</dc:creator>
		<pubDate>Sun, 29 Jan 2012 09:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25205</guid>
		<description>I&#039;m not finding documentation on _FLOAT() although it seems to work. Is there a way to add leading zeros? Better yet, can you point me to docs?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not finding documentation on _FLOAT() although it seems to work. Is there a way to add leading zeros? Better yet, can you point me to docs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25197</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 06:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25197</guid>
		<description>Hi Norm,

Sorry it&#039;s not clear.  You&#039;d probably just do something like:

&lt;code&gt;Serial &lt;&lt; _FLOAT(1.2345, 3) &lt;&lt; endl;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Norm,</p>
<p>Sorry it&#8217;s not clear.  You&#8217;d probably just do something like:</p>
<p><code>Serial &lt;&lt; _FLOAT(1.2345, 3) &lt;&lt; endl;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25195</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 06:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25195</guid>
		<description>@Shibu,

I think the problem mus be that the Maple version was derived from an older version of Arduino software -- one that didn&#039;t support the capability to specify the floating precision.  The code in question is wrapped in

#if ARDUINO &gt;= 18

so I think Maple must be less than version 18?</description>
		<content:encoded><![CDATA[<p>@Shibu,</p>
<p>I think the problem mus be that the Maple version was derived from an older version of Arduino software &#8212; one that didn&#8217;t support the capability to specify the floating precision.  The code in question is wrapped in</p>
<p>#if ARDUINO &gt;= 18</p>
<p>so I think Maple must be less than version 18?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25192</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 06:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25192</guid>
		<description>@Ralf,

Yep, the new Streaming library should work with that syntax.</description>
		<content:encoded><![CDATA[<p>@Ralf,</p>
<p>Yep, the new Streaming library should work with that syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25181</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 06:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25181</guid>
		<description>Yep, Streaming now works in Arduino 1.0.

M</description>
		<content:encoded><![CDATA[<p>Yep, Streaming now works in Arduino 1.0.</p>
<p>M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norm</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25161</link>
		<dc:creator>Norm</dc:creator>
		<pubDate>Sun, 29 Jan 2012 03:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25161</guid>
		<description>Can you furnish a few examples of formatting output? I had to resort to 
&quot;client.print(x,2);&quot; In order to get a formatted float.</description>
		<content:encoded><![CDATA[<p>Can you furnish a few examples of formatting output? I had to resort to<br />
&#8220;client.print(x,2);&#8221; In order to get a formatted float.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shibu</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-25045</link>
		<dc:creator>Shibu</dc:creator>
		<pubDate>Fri, 27 Jan 2012 16:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-25045</guid>
		<description>Hi, Mikal,
Thanks for the lib.
I tried the Streaming library on Maple (http://leaflabs.com/) and it worked straight away.

I faced only one problem. When I tried _FLOAT, it spits out error &#039;_FLOAT was not declared in this scope.
For the time being, I can live with the default precision of two decimal places for floats. However in future, I may want to adjust the precision. Is there a way out?

TIA

Shibu</description>
		<content:encoded><![CDATA[<p>Hi, Mikal,<br />
Thanks for the lib.<br />
I tried the Streaming library on Maple (<a href="http://leaflabs.com/" rel="nofollow">http://leaflabs.com/</a>) and it worked straight away.</p>
<p>I faced only one problem. When I tried _FLOAT, it spits out error &#8216;_FLOAT was not declared in this scope.<br />
For the time being, I can live with the default precision of two decimal places for floats. However in future, I may want to adjust the precision. Is there a way out?</p>
<p>TIA</p>
<p>Shibu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Kramer</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-24226</link>
		<dc:creator>Ralf Kramer</dc:creator>
		<pubDate>Thu, 12 Jan 2012 17:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-24226</guid>
		<description>With the new Arduino 1.0, it is possible to use

   Serial.print(F(&quot;Test&quot;));    // stored in flash

How can I use it with the streaming.h ?

   Serial &lt;&lt; F(&quot;Test&quot;);

doesn&#039;t work!

Ralf Kramer</description>
		<content:encoded><![CDATA[<p>With the new Arduino 1.0, it is possible to use</p>
<p>   Serial.print(F(&#8220;Test&#8221;));    // stored in flash</p>
<p>How can I use it with the streaming.h ?</p>
<p>   Serial &lt;&lt; F(&quot;Test&quot;);</p>
<p>doesn&#039;t work!</p>
<p>Ralf Kramer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall W</title>
		<link>http://arduiniana.org/libraries/streaming/comment-page-1/#comment-23779</link>
		<dc:creator>Randall W</dc:creator>
		<pubDate>Wed, 04 Jan 2012 07:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=119#comment-23779</guid>
		<description>Or you could just use sprintf(), since the Arduino language is just C, and have all the joy of easy formatted printing. To paraphrase the example above:
// This does work in Arduino.  Hooray!
char msg[128];
sprintf(msg,&quot;The button was pressed %d times&quot;,counter);
lcd.print(msg);

Even better, by using sprintf() you can control the width of fields etc. All formatted printing problems can be solved easily using the standard C libraries.</description>
		<content:encoded><![CDATA[<p>Or you could just use sprintf(), since the Arduino language is just C, and have all the joy of easy formatted printing. To paraphrase the example above:<br />
// This does work in Arduino.  Hooray!<br />
char msg[128];<br />
sprintf(msg,&#8221;The button was pressed %d times&#8221;,counter);<br />
lcd.print(msg);</p>
<p>Even better, by using sprintf() you can control the width of fields etc. All formatted printing problems can be solved easily using the standard C libraries.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

