Translated partially
This commit is contained in:
@ -6,14 +6,11 @@ const char* ssid = "............";
|
||||
const char* password = "..............";
|
||||
|
||||
ESP8266WebServer wwwserver(80);
|
||||
String content;
|
||||
const char PAGE[] PROGMEM = "<!DOCTYPE HTML>\n<html>Hello world from ESP8266<p></html>"
|
||||
|
||||
static void handleRoot(void) {
|
||||
content = F("<!DOCTYPE HTML>\n<html>Hello world from ESP8266");
|
||||
content += F("<p>");
|
||||
content += F("</html>");
|
||||
|
||||
wwwserver.send(200, F("text/html"), content);
|
||||
wwwserver.send_P(200, F("text/html"), PAGE);
|
||||
}
|
||||
|
||||
void setup() {
|
||||
|
Reference in New Issue
Block a user