2
2
3
3
This sketch test the MKR GSM 1400 board's ability to connect to a
4
4
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 .
6
6
7
7
Circuit:
8
8
* MKR GSM 1400 board
@@ -30,9 +30,9 @@ GSMClient client; // Client service for TCP connection
30
30
String oktext = " OK" ;
31
31
String errortext = " ERROR" ;
32
32
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 " ;
36
36
char path[] = " /" ;
37
37
38
38
// variable for save response obtained
@@ -105,8 +105,8 @@ void loop() {
105
105
Serial.println (proxyport);
106
106
}
107
107
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 ..." );
110
110
int res_connect;
111
111
112
112
// if use a proxy, connect with it
@@ -120,7 +120,7 @@ void loop() {
120
120
// make a HTTP 1.0 GET request (client sends the request)
121
121
client.print (" GET " );
122
122
123
- // if use a proxy, the path is arduino.cc URL
123
+ // if use a proxy, the path is example.org URL
124
124
if (use_proxy) {
125
125
client.print (urlproxy);
126
126
} else {
0 commit comments