This repository was archived by the owner on Jan 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
HTTPClient_LAN8720/SimpleHTTPExample_LAN8720
WebClientRepeating_LAN8720 Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
18
18
// This example downloads the URL "http://arduino.cc/"
19
19
// Name of the server we want to connect to
20
- const char kHostname [] = " arduino.cc " ;
20
+ const char kHostname [] = " arduino.tips " ;
21
21
22
22
// Path to download (this is the bit after the hostname in the URL
23
23
// that you want to download
Original file line number Diff line number Diff line change 24
24
25
25
#include " defines.h"
26
26
27
- char server[] = " arduino.cc " ;
27
+ char server[] = " arduino.tips " ;
28
28
29
29
unsigned long lastConnectionTime = 0 ; // last time you connected to the server, in milliseconds
30
30
const unsigned long postingInterval = 10000L ; // delay between updates, in milliseconds
@@ -48,7 +48,7 @@ void httpRequest()
48
48
49
49
// send the HTTP PUT request
50
50
client.println (F (" GET /asciilogo.txt HTTP/1.1" ));
51
- client.println (F (" Host: arduino.cc " ));
51
+ client.println (F (" Host: arduino.tips " ));
52
52
client.println (F (" Connection: close" ));
53
53
client.println ();
54
54
Original file line number Diff line number Diff line change 24
24
25
25
#include " defines.h"
26
26
27
- char server[] = " arduino.cc " ;
27
+ char server[] = " arduino.tips " ;
28
28
29
29
// Initialize the Web client object
30
30
EthernetClient client;
@@ -59,7 +59,7 @@ void setup()
59
59
Serial.println (F (" Connected to server" ));
60
60
// Make a HTTP request
61
61
client.println (F (" GET /asciilogo.txt HTTP/1.1" ));
62
- client.println (F (" Host: arduino.cc " ));
62
+ client.println (F (" Host: arduino.tips " ));
63
63
client.println (F (" Connection: close" ));
64
64
client.println ();
65
65
}
You can’t perform that action at this time.
0 commit comments