[OpenTRV-dev] OT: need help with a sketch
Stuart Poulton
EMAIL ADDRESS HIDDEN
Mon Feb 3 20:00:05 GMT 2014
No, if it does it's a broken DNS server.
Stuart
On 3 Feb 2014, at 19:55, Adrian Godwin wrote:
> Maybe the dns server understands that's a string containing an ip address and returns the numeric value ?
>
>
>
> On Mon, Feb 3, 2014 at 7:53 PM, Stuart Poulton <EMAIL ADDRESS HIDDEN> wrote:
> Ok, in which case the comment is wrong.
>
> But hey.
>
> Stuart
>
>
> On 3 Feb 2014, at 19:47, Bo Herrmannsen wrote:
>
>> it can get data, so must be working....
>>
>>
>> anyways that must be the next thing if i'm wrong
>>
>>
>> Den 03/02/2014 kl. 20.45 skrev Stuart Poulton:
>>
>>> I know whats intended, but as it's written that won't work.
>>>
>>> Stuart
>>>
>>> On 3 Feb 2014, at 19:44, Bo Herrmannsen wrote:
>>>
>>>> that is intended.... so the sketch can be used both with ip or name
>>>>
>>>>
>>>> Den 03/02/2014 kl. 19.53 skrev Stuart Poulton:
>>>>
>>>>> Bo,
>>>>>
>>>>> The other problem that you will have when you get it working is from the following
>>>>>
>>>>> const char server[] = "87.51.52.114"; // name address for server (using DNS)
>>>>>
>>>>> //IPAddress server(87,51,52,114); // example, if you want to use IP address
>>>>>
>>>>> I'll leave it as an exercise for the user to spot the problem, here's a hint look at the comments.
>>>>>
>>>>> Stuart
>>>>>
>>>>>
>>>>> On 3 Feb 2014, at 18:07, Bo Herrmannsen wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> working on a receipt printer that prints out orders from a oscommerce based webshop
>>>>>>
>>>>>> almost there but a compile error i can figure:
>>>>>>
>>>>>> sketch_feb03a:82: error: expected unqualified-id before numeric constant
>>>>>> sketch_feb03a.ino: In function 'void setup()':
>>>>>> sketch_feb03a:151: error: 'TM88' was not declared in this scope
>>>>>> sketch_feb03a.ino: In function 'void processIncoming()':
>>>>>> sketch_feb03a:402: error: 'TM88' was not declared in this scope
>>>>>> sketch_feb03a.ino: In function 'void processPrintChar(char)':
>>>>>> sketch_feb03a:459: error: 'TM88' was not declared in this scope
>>>>>> sketch_feb03a:489: error: 'TM88' was not declared in this scope
>>>>>>
>>>>>>
>>>>>> code here: https://github.com/laird/OSCommerceClient/blob/master/OSCommerce/OSCommerce.ino
>>>>>>
>>>>>> lib for the printer here: https://github.com/signalwerk/thermalprinter
>>>>>>
>>>>>>
>>>>>> this is one that is killing me..... worse than TMP112
>>>>>>
>>>>>>
>>>>>> i just want it out the door quick
>>>>>>
>>>>>>
>>>>>> HEEEEEEEEEEEEELP
>>>>>> _______________________________________________
>>>>>> OpenTRV-dev mailing list
>>>>>> EMAIL ADDRESS HIDDEN
>>>>>> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>>>>>
>>>>> _______________________________________________
>>>>> OpenTRV-dev mailing list
>>>>> EMAIL ADDRESS HIDDEN
>>>>> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>>>>
>>>> _______________________________________________
>>>> OpenTRV-dev mailing list
>>>> EMAIL ADDRESS HIDDEN
>>>> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>>>
>>> _______________________________________________
>>> OpenTRV-dev mailing list
>>> EMAIL ADDRESS HIDDEN
>>> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>>
>> _______________________________________________
>> OpenTRV-dev mailing list
>> EMAIL ADDRESS HIDDEN
>> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>
>
> _______________________________________________
> OpenTRV-dev mailing list
> EMAIL ADDRESS HIDDEN
> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>
>
> _______________________________________________
> OpenTRV-dev mailing list
> EMAIL ADDRESS HIDDEN
> http://lists.opentrv.org.uk/listinfo/opentrv-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20140203/eac962e7/attachment.html>
More information about the OpenTRV-dev
mailing list