EasyManua.ls Logo

Adafruit Feather HUZZAH ESP8266 - Page 39

Adafruit Feather HUZZAH ESP8266
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n\r\n");
delay(500);
// Read all the lines of the reply from server and print them to Serial
while(client.available()){
String line = client.readStringUntil('\r');
Serial.print(line);
}
Serial.println();
Serial.println("closing connection");
}
Dont forget to update
const char* ssid = "yourssid";
const char* password = "yourpassword";
to your access point and password, then upload the same way: get into bootload
mode, then upload code via IDE
Open up the IDE serial console at 115200 baud to see the connection and webpage
printout!
©Adafruit Industries Page 39 of 53

Related product manuals