Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 2d18544

Browse files
committed
Modify documentation for switch from DNSServer to AsyncDNSServer
1 parent 0c19ddb commit 2d18544

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ IPAddress APStaticSN = IPAddress(255, 255, 255, 0);
780780
#define HTTP_PORT 80
781781

782782
AsyncWebServer webServer(HTTP_PORT);
783-
DNSServer dnsServer;
783+
AsyncDNSServer dnsServer;
784784

785785
///////////////////////////////////////////
786786
// New in v1.4.0
@@ -1222,7 +1222,7 @@ void printLocalTime()
12221222
#define HTTP_PORT 80
12231223
12241224
AsyncWebServer webServer(HTTP_PORT);
1225-
DNSServer dnsServer;
1225+
AsyncDNSServer dnsServer;
12261226
12271227
ESPAsync_WiFiManager ESPAsync_wifiManager(&webServer, &dnsServer);
12281228
```

src/ESPAsync_WiFiManager-Impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void ESPAsync_WiFiManager::setupConfigPortal()
346346
{
347347
dnsServer->setErrorReplyCode(AsyncDNSReplyCode::NoError);
348348

349-
// DNSServer started with "*" domain name, all DNS requests will be passsed to WiFi.softAPIP()
349+
// AsyncDNSServer started with "*" domain name, all DNS requests will be passsed to WiFi.softAPIP()
350350
if (! dnsServer->start(DNS_PORT, "*", WiFi.softAPIP()))
351351
{
352352
// No socket available

0 commit comments

Comments
 (0)