<div dir="ltr">Maybe the dns server understands that's a string containing an ip address and returns the numeric value ?<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 7:53 PM, Stuart Poulton <span dir="ltr"><<a href="mailto:stuart@poulton.org.uk" target="_blank">stuart@poulton.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Ok, in which case the comment is wrong.<div><br></div><div>But hey.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Stuart</div></font></span><div><div class="h5"><div><br></div><div><br><div><div>On 3 Feb 2014, at 19:47, Bo Herrmannsen wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">it can get data, so must be working....<div>
<br></div><div><br></div><div>anyways that must be the next thing if i'm wrong</div><div><br></div><div><br><div><div>Den 03/02/2014 kl. 20.45 skrev Stuart Poulton:</div><br><blockquote type="cite"><div style="word-wrap:break-word">
I know whats intended, but as it's written that won't work.<div><br></div><div>Stuart</div><div><br><div><div>On 3 Feb 2014, at 19:44, Bo Herrmannsen wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">
that is intended.... so the sketch can be used both with ip or name<div><br></div><div><br><div><div>Den 03/02/2014 kl. 19.53 skrev Stuart Poulton:</div><br><blockquote type="cite"><div style="word-wrap:break-word">Bo,<div>
<br></div><div>The other problem that you will have when you get it working is from the following</div><div><br></div><div><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">
<div style="padding-left:10px"><span style="font-weight:bold">const</span> <span style="color:rgb(68,85,136);font-weight:bold">char</span> <span style="color:rgb(51,51,51)">server</span><span>[]</span> <span style="font-weight:bold">=</span> <span style="color:rgb(221,17,68)">"87.51.52.114"</span><span>;</span>    <span style="color:rgb(153,153,136);font-style:italic">// name address for server (using DNS)</span></div>
<div style="padding-left:10px"><span style="color:rgb(153,153,136);font-style:italic">//IPAddress server(87,51,52,114); // example, if you want to use IP address</span></div></pre><div><br></div></div><div>I'll leave it as an exercise for the user to spot the problem, here's a hint look at the comments.</div>
<div><br></div><div>Stuart</div><div><br></div><div><br><div><div>On 3 Feb 2014, at 18:07, Bo Herrmannsen wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">Hi<div><br></div><div>working on a receipt printer that prints out orders from a oscommerce based webshop</div>
<div><br></div><div>almost there but a compile error i can figure:</div><div><br></div><div><div>sketch_feb03a:82: error: expected unqualified-id before numeric constant</div><div>sketch_feb03a.ino: In function 'void setup()':</div>
<div>sketch_feb03a:151: error: 'TM88' was not declared in this scope</div><div>sketch_feb03a.ino: In function 'void processIncoming()':</div><div>sketch_feb03a:402: error: 'TM88' was not declared in this scope</div>
<div>sketch_feb03a.ino: In function 'void processPrintChar(char)':</div><div>sketch_feb03a:459: error: 'TM88' was not declared in this scope</div><div>sketch_feb03a:489: error: 'TM88' was not declared in this scope</div>
</div><div><br></div><div><br></div><div>code here: <a href="https://github.com/laird/OSCommerceClient/blob/master/OSCommerce/OSCommerce.ino" target="_blank">https://github.com/laird/OSCommerceClient/blob/master/OSCommerce/OSCommerce.ino</a></div>
<div><br></div><div>lib for the printer here: <a href="https://github.com/signalwerk/thermalprinter" target="_blank">https://github.com/signalwerk/thermalprinter</a></div><div><br></div><div><br></div><div>this is one that is killing me..... worse than TMP112</div>
<div><br></div><div><br></div><div>i just want it out the door quick</div><div><br></div><div><br></div><div>HEEEEEEEEEEEEELP</div></div>_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br></blockquote></div><br></div></div>_______________________________________________<br>OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div><br></div></div>_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div><br></div></div>_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div><br></div></div>_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
<br></blockquote></div><br></div>