hi
Firstly thanks in advance to whoever can help me ,Im trying to send sensor readings from my DHT11 sensor to the Emoncms web application.the DHT11 will be attached to an arduino which can communicate with a server via an ethernet schield .The sensor are working, but Emoncms input is not working. "No input created"
I think I have forgotten something in this part
[]// this method makes a HTTP connection to the server:
void sendData(float temperature, float humidity) {
// if there's a successful connection:
if (client.connect(server, 80)) {
Serial.println("Connecting...");
// send the HTTP PUT request:
// client.print("GET /emoncms.org/input/post.json?apikey=3c8770b84603e15ea8e2c9f023c971ef&json={temperature");
client.print("GET /emoncms.org/input/post.json?node=");
client.print(node);
client.print("&csv=");
client.print(temperature);
client.print(",");
client.print(humidity);
client.println("&apikey=3c8770b84603e15ea8e2c9f023c971ef HTTP/1.1");
// client.println("} HTTP/1.1");
client.println("Host:emoncms.org ");
client.println("User-Agent: Arduino-ethernet");
client.println("Connection: close");
client.println();
}