jcw/ethercard — Issue #18: Pachube example stops working after an hour
Author: netrunnercl
Created: 2012-02-21 07:16:09+00:00
State: open

Hi Jcw,
Im just moving from Ethershield to your library and I was really amazed about the improvements. The Pachube example was really easy to adapt, and in five minuts it just worked.

The problem is that after 30 min or an hour, it stop working correctly, and the data sent is not the appropiate (in this example is 3Bgw7aqyA0x).

As you can see here, I barey modified the example http://www.rafaeltorrales.info/arduino/pachube_temperature.ino
So, could you tell me if this is a know error, and some patching/good practices I could apply?

891
REQUEST: 174
PUT http://api.pachube.com/v2/feeds/37273.csv HTTP/1.0
Host: api.pachube.com
X-PachubeApiKey: nvjdYAgV1OcKjsbKpotePfC5mb0RRyxbCd-2z98z3Is
Content-Length: 11

3Bgw7aqyA0x
REPLY:
HTTP/1.1 400 Bad Request
Date: Tue, 21 Feb 2012 06:49:15 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
X-Pachube-Logging-Key: logging.nlYdAxqi03Bgw7aqyA0x
X-PachubeRequestId: 59bf3c1ab0d6c401ea635015be7770c0da290d3b
Cache-Control: no-cache
Content-Length: 61
Age: 0

CSV Parser Error: CSV is invalid. Incorrect number of fields.