Re: Captive Portal or force all webcalls to ESP8266 AP IP ad
Posted: Wed Apr 13, 2016 10:16 pm
I copied the latest swicago demo into a new Arduino sketch and save it as swicago.ino. It works fine. I did not copy dnsserver.cpp and dnsserver.h because the newest versions are included with the ESP8266 board package.
To learn more about DNS server, there are 3 DNS server examples included with the board package. In the IDE see File -> Examples -> DNSServer.
I do not think in softAP mode, the ESP8266 can connect to the Internet. It would have to act as STA and AP at the same time which is not possible. But I would love to hear I am wrong.
WiFi Manager use captive portal mode to configure the SSID and password, then reboot into normal mode to access the Internet. If WM cannot access the AP (SSID and password wrong or the device has moved too far from the AP), it goes back to captive mode so the user can enter a different SSID and password.
viewtopic.php?f=152&t=8705&p=42991&hilit=wifi+manager#p42991
To learn more about DNS server, there are 3 DNS server examples included with the board package. In the IDE see File -> Examples -> DNSServer.
I do not think in softAP mode, the ESP8266 can connect to the Internet. It would have to act as STA and AP at the same time which is not possible. But I would love to hear I am wrong.
WiFi Manager use captive portal mode to configure the SSID and password, then reboot into normal mode to access the Internet. If WM cannot access the AP (SSID and password wrong or the device has moved too far from the AP), it goes back to captive mode so the user can enter a different SSID and password.
viewtopic.php?f=152&t=8705&p=42991&hilit=wifi+manager#p42991