1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Add support for newer mobile OS changes. (#5529)

* Add support for newer mobile OS changes.

Took me quite a while to figure this out, but according to this issue (https://github.com/espressif/arduino-esp32/issues/1037), in order to get a captive notification to show or the popup to open, the DNS server must resolve to a public IP. It will not work with a pivate one (e.g. 192.168.4.1).

On Android, a notification ("Register with Network") is displayed in top left notification bar.
On IOS, the login popup is displayed.

* Add support for newer mobile OS changes.

Took me quite a while to figure this out, but according to this issue (espressif/arduino-esp32#1037), in order to get a captive notification to show or the popup to open, the DNS server must resolve to a public IP. It will not work with a pivate one (e.g. 192.168.4.1).

On Android, a notification ("Register with Network") is displayed in top left notification bar.
On IOS, the login popup is displayed.
This commit is contained in:
nouser2013 2019-07-08 16:12:28 +02:00 committed by david gauchard
parent d2a487dfd9
commit adf2b14a6a
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#include <ESP8266WebServer.h> #include <ESP8266WebServer.h>
const byte DNS_PORT = 53; const byte DNS_PORT = 53;
IPAddress apIP(192, 168, 1, 1); IPAddress apIP(172, 217, 28, 1);
DNSServer dnsServer; DNSServer dnsServer;
ESP8266WebServer webServer(80); ESP8266WebServer webServer(80);

View File

@ -41,7 +41,7 @@ DNSServer dnsServer;
ESP8266WebServer server(80); ESP8266WebServer server(80);
/* Soft AP network parameters */ /* Soft AP network parameters */
IPAddress apIP(192, 168, 4, 1); IPAddress apIP(172, 217, 28, 1);
IPAddress netMsk(255, 255, 255, 0); IPAddress netMsk(255, 255, 255, 0);