Skip to content

Commit b5e8a34

Browse files
ethernet lib: move examples to arduino.tips
1 parent 5266ced commit b5e8a34

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ IPAddress myDns(192, 168, 0, 1);
2525
// initialize the library instance:
2626
ZephyrClient client;
2727

28-
char server[] = "www.arduino.cc"; // also change the Host line in httpRequest()
28+
char server[] = "arduino.tips"; // also change the Host line in httpRequest()
2929
//IPAddress server(64,131,82,241);
3030

3131
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
@@ -99,8 +99,9 @@ void httpRequest() {
9999
if (client.connect(server, 80)) {
100100
Serial.println("connecting...");
101101
// send the HTTP GET request:
102-
client.println("GET /latest.txt HTTP/1.1");
103-
client.println("Host: www.arduino.cc");
102+
client.println("GET /asciilogo.txt HTTP/1.1");
103+
client.print("Host: ");
104+
client.println(server);
104105
client.println("User-Agent: arduino-ethernet");
105106
client.println("Connection: close");
106107
client.println();

libraries/Ethernet/examples/WebClientRepeatingSSL/WebClientRepeatingSSL.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// initialize the library instance:
1313
ZephyrSSLClient client;
1414

15-
char server[] = "www.arduino.cc";
15+
char server[] = "arduino.tips";
1616
int port = 443;
1717
// IPAddress server(64,131,82,241);
1818

@@ -93,7 +93,7 @@ void httpRequest()
9393
if (client.connect(server, port)) {
9494
Serial.println("connecting...");
9595
// send the HTTP GET request:
96-
client.println("GET /latest.txt HTTP/1.1");
96+
client.println("GET /asciilogo.txt HTTP/1.1");
9797
client.print("Host: ");
9898
client.println(server);
9999
client.println("User-Agent: arduino-ethernet");

0 commit comments

Comments
 (0)