Skip to content

Commit d003c53

Browse files
committed
small changes inside the GSM pachube examples
1 parent c3b581b commit d003c53

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libraries/GSM/examples/GSMPachubeClient/GSMPachubeClient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void sendData(int thisData)
126126
client.print("PUT /v2/feeds/");
127127
client.print(FEEDID);
128128
client.println(".csv HTTP/1.1");
129-
client.print("Host: api.pachube.com\n");
129+
client.println("Host: api.pachube.com");
130130
client.print("X-ApiKey: ");
131131
client.println(APIKEY);
132132
client.print("User-Agent: ");
@@ -139,7 +139,7 @@ void sendData(int thisData)
139139
client.println(thisLength);
140140

141141
// last pieces of the HTTP PUT request:
142-
client.print("Content-Type: text/csv\n");
142+
client.println("Content-Type: text/csv");
143143
client.println("Connection: close");
144144
client.println();
145145

libraries/GSM/examples/GSMPachubeClientString/GSMPachubeClientString.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void sendData(String thisData)
138138
client.print("PUT /v2/feeds/");
139139
client.print(FEEDID);
140140
client.println(".csv HTTP/1.1");
141-
client.print("Host: api.pachube.com\n");
141+
client.println("Host: api.pachube.com");
142142
client.print("X-ApiKey: ");
143143
client.println(APIKEY);
144144
client.print("User-Agent: ");
@@ -147,8 +147,8 @@ void sendData(String thisData)
147147
client.println(thisData.length());
148148

149149
// last pieces of the HTTP PUT request
150-
client.print("Content-Type: text/csv\n");
151-
client.println("Connection: close\n");
150+
client.println("Content-Type: text/csv");
151+
client.println("Connection: close");
152152
client.println();
153153

154154
// here's the actual content of the PUT request

0 commit comments

Comments
 (0)