This repository was archived by the owner on Jan 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
HTTPClient/SimpleHTTPExample Expand file tree Collapse file tree 4 files changed +7
-7
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 2727// If USE_BUILTIN_ETHERNET == false and USE_UIP_ETHERNET == false =>
2828// either use W5x00 with EthernetXYZ library
2929// or ENC28J60 with EthernetENC library
30- // #define USE_BUILTIN_ETHERNET true
31- #define USE_BUILTIN_ETHERNET false
30+ #define USE_BUILTIN_ETHERNET true
31+ // #define USE_BUILTIN_ETHERNET false
3232
3333//#define USE_UIP_ETHERNET true
3434#define USE_UIP_ETHERNET false
Original file line number Diff line number Diff line change 1111
1212#include " defines.h"
1313
14- char server[] = " arduino.cc " ;
14+ char server[] = " arduino.tips " ;
1515
1616// Initialize the Web client object
1717EthernetClient client;
@@ -68,7 +68,7 @@ void setup()
6868 Serial.println (F (" Connected to server" ));
6969 // Make a HTTP request
7070 client.println (F (" GET /asciilogo.txt HTTP/1.1" ));
71- client.println (F (" Host: arduino.cc " ));
71+ client.println (F (" Host: arduino.tips " ));
7272 client.println (F (" Connection: close" ));
7373 client.println ();
7474 }
Original file line number Diff line number Diff line change 1111
1212#include " defines.h"
1313
14- char server[] = " arduino.cc " ;
14+ char server[] = " arduino.tips " ;
1515
1616unsigned long lastConnectionTime = 0 ; // last time you connected to the server, in milliseconds
1717const unsigned long postingInterval = 10000L ; // delay between updates, in milliseconds
@@ -35,7 +35,7 @@ void httpRequest()
3535
3636 // send the HTTP PUT request
3737 client.println (F (" GET /asciilogo.txt HTTP/1.1" ));
38- client.println (F (" Host: arduino.cc " ));
38+ client.println (F (" Host: arduino.tips " ));
3939 client.println (F (" Connection: close" ));
4040 client.println ();
4141
You can’t perform that action at this time.
0 commit comments