Hi guys,
I have been cribbing various sketches to make up a sketch that sends the temp from a ds18b20 to cosm.com. It took me a while because a lot of the sketches seemed to relate to an older cosm/pachube API, or an older version of an arduino Ethernet library, but I got there in the end...almost!
My sketch is working, but it does something weird. It should output to the serial port, the reply that comes back from cosm's server when I post to it. This works, but when it comes back, it writes very slowly to screen, almost like someone is typing it out, rather than displaying a whole paragraph at a time. This makes me think that I have an issue in my sketch where it tries to read the value of the sensor, and it is doing it continuously, slowing up the sketch.
I thought that if the read temperature request was at the beginning of my loop, it would just run that, wait for it to post to cosm, then re-run it. However, to me it looks like it is continually trying to pull the temperature, slowing the sketch. Any advice on this would be greatly appreciated - thanks! My sketch is below!
TIA!