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
Содержание Feather HUZZAH ESP8266
Страница 4: ...Adafruit Industries Page 4 of 53...