#include #include #include #include #include #include #include const char* esphostname = "only14"; ESP8266WebServer server(80); void setup() { Serial.begin(115200); delay(10); Serial.flush(); WiFiManager wifiManager; wifiManager.autoConnect( esphostname, "why?" ); server.on("/", HTTP_GET, []() { server.send(200, "text/plain", "I want 22"); }); server.onNotFound([](){ server.send(200, "text/plain", "I just want 22"); }); server.begin(); unsigned int ip = WiFi.localIP(); Serial.printf( "ip address using IP2STR : %u.%u.%u.%u\n", IP2STR(&ip) ); } void loop() { // put your main code here, to run repeatedly: server.handleClient(); }