#include #include /* Put your SSID & Password */ const char* ssid = "ESP32"; // Enter SSID here const char* password = "12345678"; //Enter Password here /* Put IP Address details */ IPAddress local_ip(192,168,1,1); IPAddress gateway(192,168,1,1); IPAddress subnet(255,255,255,0); 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 handle_NotFound(){ server.send(404, "text/plain", "Not found"); } void setup() { Serial.begin(115200); WiFi.softAP(ssid, password); WiFi.softAPConfig(local_ip, gateway, subnet); delay(100); server.on("/", handleRoot); server.onNotFound(handle_NotFound); server.begin(); Serial.println("HTTP server started"); } void loop() { server.handleClient(); }