https://tttapa.github.io/ESP8266/Chap12%20-%20Uploading%20to%20Server.html
pero ho modificato per acces point
*/
//adaugat pentru webserver fara conectare la modem wifi
// Set up mDNS responder:
// - first argument is the domain name, in this example
// the fully-qualified domain name is "esp8266.local"
// - second argument is the IP address to advertise
// we send our IP address on the WiFi network
if (!MDNS.begin("esp8266")) {
Serial.println("Error setting up MDNS responder!");
while (1) {
delay(1000);
}
}
Serial.println("mDNS responder started");
// Start TCP (HTTP) server
server.begin();
Serial.println("TCP server started");
// Add service to MDNS-SD
MDNS.addService("http", "tcp", 80);
//sfarsit adaugat pentru webserver fara conectare la modem wifi