Skip to content

Commit 39da63f

Browse files
committed
Changed arduino.cc in example.org
Changed the server url in GsmWebClient.ino and TestGPRS.in examples, due to the dismission of http://arduino.cc
1 parent ce9491e commit 39da63f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

examples/GsmWebClient/GsmWebClient.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Web client
33
44
This sketch connects to a website through a MKR GSM 1400 board. Specifically,
5-
this example downloads the URL "http://www.arduino.cc/asciilogo.txt" and
5+
this example downloads the URL "http://www.example.org/" and
66
prints it to the Serial monitor.
77
88
Circuit:
@@ -31,9 +31,9 @@ GSMClient client;
3131
GPRS gprs;
3232
GSM gsmAccess;
3333

34-
// URL, path and port (for example: arduino.cc)
35-
char server[] = "arduino.cc";
36-
char path[] = "/asciilogo.txt";
34+
// URL, path and port (for example: example.org)
35+
char server[] = "example.org";
36+
char path[] = "/";
3737
int port = 80; // port 80 is the default for HTTP
3838

3939
void setup() {

examples/Tools/TestGPRS/TestGPRS.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
This sketch test the MKR GSM 1400 board's ability to connect to a
44
GPRS network. It asks for APN information through the
5-
serial monitor and tries to connect to arduino.cc.
5+
serial monitor and tries to connect to example.org.
66
77
Circuit:
88
* MKR GSM 1400 board
@@ -30,9 +30,9 @@ GSMClient client; // Client service for TCP connection
3030
String oktext = "OK";
3131
String errortext = "ERROR";
3232

33-
// URL and path (for example: arduino.cc)
34-
char url[] = "arduino.cc";
35-
char urlproxy[] = "http://www.arduino.cc";
33+
// URL and path (for example: example.org)
34+
char url[] = "example.org";
35+
char urlproxy[] = "http://www.example.org";
3636
char path[] = "/";
3737

3838
// variable for save response obtained
@@ -105,8 +105,8 @@ void loop() {
105105
Serial.println(proxyport);
106106
}
107107

108-
// connection with arduino.cc and realize HTTP request
109-
Serial.print("Connecting and sending GET request to arduino.cc...");
108+
// connection with example.org and realize HTTP request
109+
Serial.print("Connecting and sending GET request to example.org...");
110110
int res_connect;
111111

112112
// if use a proxy, connect with it
@@ -120,7 +120,7 @@ void loop() {
120120
// make a HTTP 1.0 GET request (client sends the request)
121121
client.print("GET ");
122122

123-
// if use a proxy, the path is arduino.cc URL
123+
// if use a proxy, the path is example.org URL
124124
if (use_proxy) {
125125
client.print(urlproxy);
126126
} else {

0 commit comments

Comments
 (0)