mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Fix mDNS library usage in ESP8266WebServer examples
This commit is contained in:
parent
2a2ecf8d94
commit
143f29bc29
@ -35,7 +35,6 @@
|
||||
|
||||
const char *ssid = "YourSSIDHere";
|
||||
const char *password = "YourPSKHere";
|
||||
MDNSResponder mdns;
|
||||
|
||||
ESP8266WebServer server ( 80 );
|
||||
|
||||
@ -109,7 +108,7 @@ void setup ( void ) {
|
||||
Serial.print ( "IP address: " );
|
||||
Serial.println ( WiFi.localIP() );
|
||||
|
||||
if ( mdns.begin ( "esp8266", WiFi.localIP() ) ) {
|
||||
if ( MDNS.begin ( "esp8266" ) ) {
|
||||
Serial.println ( "MDNS responder started" );
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
const char* ssid = "........";
|
||||
const char* password = "........";
|
||||
MDNSResponder mdns;
|
||||
|
||||
ESP8266WebServer server(80);
|
||||
|
||||
@ -52,7 +51,7 @@ void setup(void){
|
||||
Serial.print("IP address: ");
|
||||
Serial.println(WiFi.localIP());
|
||||
|
||||
if (mdns.begin("esp8266", WiFi.localIP())) {
|
||||
if (MDNS.begin("esp8266")) {
|
||||
Serial.println("MDNS responder started");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user