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 1717
1818// This example downloads the URL "http://arduino.cc/"
1919// Name of the server we want to connect to
20- const char kHostname [] = " arduino.cc " ;
20+ const char kHostname [] = " arduino.tips " ;
2121
2222// Path to download (this is the bit after the hostname in the URL
2323// that you want to download
Original file line number Diff line number Diff line change 2424
2525#include " defines.h"
2626
27- char server[] = " arduino.cc " ;
27+ char server[] = " arduino.tips " ;
2828
2929unsigned long lastConnectionTime = 0 ; // last time you connected to the server, in milliseconds
3030const unsigned long postingInterval = 10000L ; // delay between updates, in milliseconds
@@ -48,7 +48,7 @@ void httpRequest()
4848
4949 // send the HTTP PUT request
5050 client.println (F (" GET /asciilogo.txt HTTP/1.1" ));
51- client.println (F (" Host: arduino.cc " ));
51+ client.println (F (" Host: arduino.tips " ));
5252 client.println (F (" Connection: close" ));
5353 client.println ();
5454
Original file line number Diff line number Diff line change 2424
2525#include " defines.h"
2626
27- char server[] = " arduino.cc " ;
27+ char server[] = " arduino.tips " ;
2828
2929// Initialize the Web client object
3030EthernetClient client;
@@ -59,7 +59,7 @@ void setup()
5959 Serial.println (F (" Connected to server" ));
6060 // Make a HTTP request
6161 client.println (F (" GET /asciilogo.txt HTTP/1.1" ));
62- client.println (F (" Host: arduino.cc " ));
62+ client.println (F (" Host: arduino.tips " ));
6363 client.println (F (" Connection: close" ));
6464 client.println ();
6565 }
You can’t perform that action at this time.
0 commit comments