// calculate the length of the sensor reading in bytes:// 8 bytes for "sensor1," + number of digits of the data:// plus the same again and length of data 2int thisLength = 8 + getLength(thisData) + 8 + getLength(thisData2);client.println(thisLength);

// last pieces of the HTTP PUT request:client.println("Content-Type: text/csv");client.println("Connection: close");client.println();

// here's the actual content of the PUT request:client.print("sensor1,");client.println(thisData);// and the 2nd sensorclient.print("sensor2,");client.println(thisData2);

}else {// if you couldn't make a connection:Serial.println("connection failed");Serial.println();Serial.println("disconnecting.");client.stop();}// note the time that the connection was made or attempted:lastConnectionTime = millis();} this code i found on the cosm forum

OK, now that you haven't summarily dismissed my comment, my guess is that it is definitely your problem and explains why your code looks like incomprehensible junk.

I get the impression that cosm underwent a palace revolution about last September and, unless you are one of the gold star brigade, anything you pick up on this matter that is older than that, is just going to cause you grief.

Check the cosm site, get the kosher libraries, cosm.h and httpclient, and you will probably be fine. You will see examples in the "It Worked!" section of the cosm forum, including one of mine, and there is stuff included with the libraries.

Serial.println(); delay(15000);}obviously i add all the information that is needed to be added soIn the serial display it now showing Error getting IP address via DHCP, trying again...any solution to this would be great

I'm not sure what you have and have not done. Are you saying that you have everything working OK, with the single sensor graph displaying at cosm, when you connect to your router by WiFi, but when you try to do the same thing by ethernet to the same router, it will not work?

Your code is more or less the same as mine, and should work. The only discrepancy I can see is the buffer command missing

Yes that is basically it! I have the 3 sensors working fine with the wifi but has no buffer :/ I haven't done much to change the code from wifi to Ethernet. Will try work on it tomorrow and let you know what happens, thanks!

Hmmmm now its sayinig that its connected and uploading to cosm but for some reason its not doing it, no sensors values are graphed must be something small in the code, it's getting better will inform if it works!

No he-he about it. My neighbour uses foil food tray reflector to boost his WiFi signal. To good effect, I understand. There are bigger antenna rods available on eBay for just a few dollars, but these are for the router. I don't know how you would beef up a WiFi shield but I bet it can be done. Failing that, you might be able to use a router as an intermediary.