mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
small changes inside the GSM pachube examples
This commit is contained in:
parent
c3b581b470
commit
d003c538f4
@ -126,7 +126,7 @@ void sendData(int thisData)
|
||||
client.print("PUT /v2/feeds/");
|
||||
client.print(FEEDID);
|
||||
client.println(".csv HTTP/1.1");
|
||||
client.print("Host: api.pachube.com\n");
|
||||
client.println("Host: api.pachube.com");
|
||||
client.print("X-ApiKey: ");
|
||||
client.println(APIKEY);
|
||||
client.print("User-Agent: ");
|
||||
@ -139,7 +139,7 @@ void sendData(int thisData)
|
||||
client.println(thisLength);
|
||||
|
||||
// last pieces of the HTTP PUT request:
|
||||
client.print("Content-Type: text/csv\n");
|
||||
client.println("Content-Type: text/csv");
|
||||
client.println("Connection: close");
|
||||
client.println();
|
||||
|
||||
|
@ -138,7 +138,7 @@ void sendData(String thisData)
|
||||
client.print("PUT /v2/feeds/");
|
||||
client.print(FEEDID);
|
||||
client.println(".csv HTTP/1.1");
|
||||
client.print("Host: api.pachube.com\n");
|
||||
client.println("Host: api.pachube.com");
|
||||
client.print("X-ApiKey: ");
|
||||
client.println(APIKEY);
|
||||
client.print("User-Agent: ");
|
||||
@ -147,8 +147,8 @@ void sendData(String thisData)
|
||||
client.println(thisData.length());
|
||||
|
||||
// last pieces of the HTTP PUT request
|
||||
client.print("Content-Type: text/csv\n");
|
||||
client.println("Connection: close\n");
|
||||
client.println("Content-Type: text/csv");
|
||||
client.println("Connection: close");
|
||||
client.println();
|
||||
|
||||
// here's the actual content of the PUT request
|
||||
|
Loading…
Reference in New Issue
Block a user