==== Client Wifi / Server HTTP === #include #include //#include const char *ssid = "Your SSID"; const char *password = "P4sswOrd"; WebServer server(80); void handleRoot() { String html = ""; html += "\n"; html += "\n"; html += "Server ESP32\n"; html += "\n"; html += "\n"; html += "

Hello world

\n"; html += "\n"; html += ""; server.send(200, "text/html", html); } void setup(void) { Serial.begin(115200); while (!Serial) continue; WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) delay(500); Serial.print("Connected to "); Serial.println(ssid); Serial.print("IP address: "); Serial.println(WiFi.localIP()); //if (MDNS.begin("esp32")) { // Serial.println("MDNS responder started"); //} server.on("/", handleRoot); server.onNotFound([]() { server.send(404, "text/plain", "Not Found"); }); server.begin(); Serial.println("HTTP server started"); } void loop(void) { server.handleClient(); }