Open sarfata opened 8 years ago
Flyweb also uses mDNS:
#include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> ESP8266WebServer server(80); void handleRequest() { String html = "<h1>Hello FlyWeb from ESP8266!</h1>"; server.send(200, "text/html", html); } void setup() { String accessPointName = "FlyWeb AP"; WiFi.mode(WIFI_AP); WiFi.softAP(accessPointName.c_str()); server.on("/", handleRequest); server.begin(); MDNS.begin("Hello FlyWeb"); MDNS.addService("flyweb", "tcp", 80); } void loop() { server.handleClient(); }
Flyweb also uses mDNS: